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

#include <parserError.hpp>

Inheritance diagram for anch::ini::ParserError:
Collaboration diagram for anch::ini::ParserError:

Public Types

enum class  ErrorCode { UNKNOWN = 0 , NOT_READABLE , PARSING_ERROR , BAD_CAST }

Public Member Functions

 ParserError ()=delete
 ParserError (const std::string &msg, ParserError::ErrorCode code=ErrorCode::UNKNOWN)
virtual ~ParserError () noexcept
virtual const char * what () const noexcept
ParserError::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

BAD_CAST 

Bad cast error

Constructor & Destructor Documentation

◆ ParserError() [1/2]

anch::ini::ParserError::ParserError ( )
delete

Forbids ParserError default constructor

◆ ParserError() [2/2]

anch::ini::ParserError::ParserError ( const std::string & msg,
ParserError::ErrorCode code = ErrorCode::UNKNOWN )

ParserError constructor

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

◆ ~ParserError()

virtual anch::ini::ParserError::~ParserError ( )
virtualnoexcept

ParserError destructor

Member Function Documentation

◆ getErrorCode()

ParserError::ErrorCode anch::ini::ParserError::getErrorCode ( ) const
noexcept

Error code getter

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

◆ what()

virtual const char * anch::ini::ParserError::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: