lbm_reference
|
Exception class for syntax errors. More...
#include <confparser/ConfParser.h>
Public Member Functions | |
BadSyntax () throw () | |
Default constructor. More... | |
BadSyntax (const std::string file, const int line, const std::string error) throw () | |
Constructor. More... | |
const char * | getErrorMsg () const throw () |
Returns error description. More... | |
const char * | getFileName () const throw () |
Returns the file name. More... | |
int | getLine () const throw () |
Returns the line of the error. More... | |
virtual | ~BadSyntax () throw () |
Destructor. More... | |
Private Attributes | |
const std::string | error_ |
Description of the syntax error. More... | |
const std::string | file_ |
File with erroneous syntax. More... | |
const int | line_ |
Line of the syntax error. More... | |
Exception class for syntax errors.
Is capable of providing information about the file and the line where the syntax error occured as well as a description of the error.
Definition at line 25 of file ConfParser.h.
|
inline |
|
inline |
Constructor.
Sets information about file and line of error occurrence as well as an error description.
Definition at line 48 of file ConfParser.h.
|
inlinevirtual |
Destructor.
Definition at line 57 of file ConfParser.h.
|
inline |
Returns error description.
Definition at line 79 of file ConfParser.h.
References error_.
|
inline |
Returns the file name.
Definition at line 67 of file ConfParser.h.
References file_.
|
inline |
Returns the line of the error.
Definition at line 73 of file ConfParser.h.
References line_.
|
private |
Description of the syntax error.
Definition at line 97 of file ConfParser.h.
Referenced by getErrorMsg().
|
private |
File with erroneous syntax.
Definition at line 89 of file ConfParser.h.
Referenced by getFileName().
|
private |