Deepsolver
|
The main exception class of Deepsolver project. More...
Public Member Functions | |
DeepsolverException () | |
The default constructor. | |
virtual std::string | getMessage () const =0 |
Returns the single line error description. | |
virtual std::string | getType () const =0 |
Returns the string with error type. | |
virtual | ~DeepsolverException () |
the destructor |
The every exception class used for error indication in Deepsolver project must be the child (not strongly directly) of this DeepsolverException class. It is created to simplify error handling and make it unified. The main information this class must provide is the error type and single line error description.
virtual std::string DeepsolverException::getMessage | ( | ) | const [pure virtual] |
This method returns the single line string value with error description. Usually it is the value printed to user in error message. The value may not include error type since it can be obtained with getType() method.
Implemented in InfoFileValueException, ConfigException, ConfigFileException, SystemException, InfoFileSyntaxException, Md5FileException, IndexCoreException, TextFormatReaderException, TaskException, RegExpException, RpmException, and GzipException.
virtual std::string DeepsolverException::getType | ( | ) | const [pure virtual] |
This method returns the short string with one or two words describing the error type. For example, this method can return values like "system", "rpm" etc. The value returned by this method usually is used for error message construction.
Implemented in InfoFileValueException, ConfigException, ConfigFileException, InfoFileSyntaxException, Md5FileException, SystemException, IndexCoreException, TextFormatReaderException, TaskException, RegExpException, RpmException, and GzipException.