NOMAD Source
Version 4.0.0 Beta
|
#include <Exception.hpp>
Public Member Functions | |
Exception (size_t line, const std::string &msg) | |
virtual | ~Exception (void) |
Destructor. More... | |
const char * | what (void) const noexcept |
Access to the error message. More... | |
size_t | getLineNumber (void) const noexcept |
Exception (const std::string &file, const size_t line, const std::string &msg) | |
Constructor. More... | |
virtual | ~Exception (void) throw () |
Destructor. More... | |
const char * | what (void) const throw () |
Access to the error message. More... | |
Private Attributes | |
std::string | _what |
Error message. More... | |
size_t | _line |
Line number at which the exception is thrown. More... | |
std::string | _file |
File where the exception is thrown. More... | |
Exception utility.
Custom class for exceptions.
NOMAD uses this type of exceptions. It indicates the file and line number at which a throw is made.
Example
Definition at line 37 of file WriteAttributeDefinitionFile.cpp.
|
inline |
Definition at line 47 of file WriteAttributeDefinitionFile.cpp.
|
inlinevirtual |
|
inline |
Constructor.
file | A string corresponding to the file where the exception is thrown – IN |
line | An integer corresponding to the line number at which the exception is thrown – IN. |
msg | A string corresponding to the error message – IN. |
Definition at line 45 of file Exception.hpp.
|
inlinevirtual |
|
inlinenoexcept |
Definition at line 59 of file WriteAttributeDefinitionFile.cpp.
const char* Exception::what | ( | void | ) | const | |
throw | ( | ||||
) |
Access to the error message.
|
inlinenoexcept |
Access to the error message.
Definition at line 58 of file WriteAttributeDefinitionFile.cpp.
|
private |
File where the exception is thrown.
Definition at line 32 of file Exception.hpp.
|
private |
Line number at which the exception is thrown.
Definition at line 43 of file WriteAttributeDefinitionFile.cpp.
|
mutableprivate |
Error message.
Definition at line 42 of file WriteAttributeDefinitionFile.cpp.