#include <confError.hpp>
Public Types | |
| enum class | ErrorCode { UNKNOWN = 0 , NOT_READABLE , PARSING_ERROR , CONF_NOT_FOUND , RES_NOT_FOUND , RES_PROTECTED , NOT_RES , PARSER_NOT_FOUND , PARSER_PROTECTED , NOT_LOADED } |
Public Member Functions | |
| ConfError ()=delete | |
| ConfError (const std::string &msg, ConfError::ErrorCode code=ErrorCode::UNKNOWN) | |
| virtual | ~ConfError () noexcept |
| virtual const char * | what () const noexcept |
| ConfError::ErrorCode | getErrorCode () const noexcept |
|
strong |
| Enumerator | |
|---|---|
| UNKNOWN | Unknown error |
| NOT_READABLE | File is not readable |
| PARSING_ERROR | Parsing error |
| CONF_NOT_FOUND | Configuration not found |
| RES_NOT_FOUND | Resolver not found |
| RES_PROTECTED | Resolver is a protected resolver |
| NOT_RES | Unresolved configuration value(s) |
| PARSER_NOT_FOUND | Parser not found |
| PARSER_PROTECTED | Parser is a protected resolver |
| NOT_LOADED | Parser is not initialized |
|
delete |
Forbids ConfError default constructor
| anch::conf::ConfError::ConfError | ( | const std::string & | msg, |
| ConfError::ErrorCode | code = ErrorCode::UNKNOWN ) |
ConfError constructor
| msg | the error message |
| code | the error code (default to UNKNOWN) |
|
virtualnoexcept |
ConfError destructor
|
noexcept |
Error code getter
|
virtualnoexcept |
Get error message