Deepsolver
Public Member Functions
DeepsolverException Class Reference

The main exception class for Deepsolver project. More...

Inheritance diagram for DeepsolverException:
ConfigException ConfigFileException CurlException GzipException IndexCoreException InfoFileException Md5FileException NotImplementedException PackageBackEndException RegExpException SystemException TaskException

List of all members.

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

Detailed Description

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.

See also:
ConfigException
ConfigFileException
CurlException
GzipException
IndexCoreException
InfoFileException
InfoFileSyntaxException
InfoFileValueException
Md5FileException
NotImplementedException
OperationException
RegExpException
PackageBackEndException
SystemException
TaskException

Member Function Documentation

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.

Returns:
A single line error description

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.

Returns:
A short string with error type description

Implemented in NotImplementedException, PackageBackEndException, Md5FileException, RegExpException, CurlException, GzipException, InfoFileValueException, InfoFileSyntaxException, ConfigException, ConfigFileException, IndexCoreException, TaskException, and SystemException.