AnCH Framework 0.1
Another C++ Hack Framework
Loading...
Searching...
No Matches
anch::conf::ConfError Class Reference

#include <confError.hpp>

Inheritance diagram for anch::conf::ConfError:
Collaboration diagram for anch::conf::ConfError:

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

Detailed Description

  • Parse error exception
Author
Vincent Lachenal
Since
0.1

Member Enumeration Documentation

◆ ErrorCode

Author
Vincent Lachenal
Since
0.1
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

Constructor & Destructor Documentation

◆ ConfError() [1/2]

anch::conf::ConfError::ConfError ( )
delete

Forbids ConfError default constructor

◆ ConfError() [2/2]

anch::conf::ConfError::ConfError ( const std::string & msg,
ConfError::ErrorCode code = ErrorCode::UNKNOWN )

ConfError constructor

Parameters
msgthe error message
codethe error code (default to UNKNOWN)

◆ ~ConfError()

virtual anch::conf::ConfError::~ConfError ( )
virtualnoexcept

ConfError destructor

Member Function Documentation

◆ getErrorCode()

ConfError::ErrorCode anch::conf::ConfError::getErrorCode ( ) const
noexcept

Error code getter

Returns
the error code
Here is the call graph for this function:

◆ what()

virtual const char * anch::conf::ConfError::what ( ) const
virtualnoexcept

Get error message

Returns
the error message
Here is the call graph for this function:

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