VoiceMan
|
The exception class to handle configuration errors. More...
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. |
This class is used to notify about an error during configuration data processing and store all necessary information. This class must not be confused with configuration file parsing errors. This class is used only for semantics errors.
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.