Deepsolver
|
The main exception class for Deepsolver project. More...
Public Member Functions | |
DeepsolverException () | |
The default constructor. | |
virtual std::string | getMessage () const =0 |
Returns a single line error description. | |
virtual std::string | getType () const =0 |
Returns a string with error type. | |
virtual | ~DeepsolverException () |
the destructor |
The every exception class used for error indication in Deepsolver project must be a descendant (not exactly direct) of this DeepsolverException class. It is created to simplify error handling and make it unified. The main information this class must provide is the an error type and a single line error description.
virtual std::string DeepsolverException::getMessage | ( | ) | const [pure virtual] |
This method returns a 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 NotImplementedException, PackageBackEndException, Md5FileException, RegExpException, CurlException, GzipException, InfoFileValueException, InfoFileSyntaxException, ConfigException, ConfigFileException, IndexCoreException, TaskException, and SystemException.
virtual std::string DeepsolverException::getType | ( | ) | const [pure virtual] |
This method returns a short string with one or two words describing the error type. For example, this method can return values like "system", "back-end" etc. A value returned by this method usually is used for error message construction.
Implemented in NotImplementedException, PackageBackEndException, Md5FileException, RegExpException, CurlException, GzipException, InfoFileValueException, InfoFileSyntaxException, ConfigException, ConfigFileException, IndexCoreException, TaskException, and SystemException.