Public Member Functions | |
ConfigurationException (const std::string &comment) | |
The constructor. | |
std::string | getMessage () const |
Returns exception description. | |
void | makeLogReport (int level) const |
Makes report to logging system. | |
virtual | ~ConfigurationException () |
The destructor. |
ConfigurationException::ConfigurationException | ( | const std::string & | comment | ) | [inline] |
[in] | comment | The single-line error description |
std::string ConfigurationException::getMessage | ( | ) | const [inline, virtual] |
This method generates single line description of the error object. returned string can be printed to console or to log as error report.
Implements VoicemanException.
void ConfigurationException::makeLogReport | ( | int | level | ) | const [inline, virtual] |
This function writes to log a report about error object. It may be not exactly the same value as produced by getMessage() method. The level of message must be specified, because the same error can have different levels in different situations.
level | The level of error log report |
Implements VoicemanException.