libconfig v2.1.0
Reflection based C++ configuration library
Loading...
Searching...
No Matches
fourdst::config::exceptions::ConfigLoadError Class Referencefinal

Thrown when loading the configuration from a file fails. More...

#include <exceptions.h>

Inheritance diagram for fourdst::config::exceptions::ConfigLoadError:
[legend]
Collaboration diagram for fourdst::config::exceptions::ConfigLoadError:
[legend]

Private Member Functions

 ConfigError (const std::string &what)
 Constructs a ConfigError with a specific message.
 

Additional Inherited Members

- Public Member Functions inherited from fourdst::config::exceptions::ConfigError
 ConfigError (const std::string &what)
 Constructs a ConfigError with a specific message.
 
const char * what () const noexcept override
 Returns the error message.
 

Detailed Description

Thrown when loading the configuration from a file fails.

This can occur if the file does not exist, or if there are policy violations (e.g., root name mismatch when KEEP_CURRENT is set).

Member Function Documentation

◆ ConfigError()

fourdst::config::exceptions::ConfigError::ConfigError ( const std::string & what)
inlineexplicitprivate

Constructs a ConfigError with a specific message.

Parameters
whatThe error message.

The documentation for this class was generated from the following file: