Deepsolver
Public Member Functions
DeepsolverException Class Reference

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

Inheritance diagram for DeepsolverException:
ConfigException ConfigFileException GzipException IndexCoreException InfoFileException Md5FileException RegExpException RpmException SystemException TaskException TextFormatReaderException

List of all members.

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

Detailed Description

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.

See also:
SystemException RpmException IndexCoreException ConfigException ConfigFileException CurlException InfoFileException OperationException TaskException

Member Function Documentation

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.

Returns:
The single line error description

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.

Returns:
The short string with error type description

Implemented in InfoFileValueException, ConfigException, ConfigFileException, InfoFileSyntaxException, Md5FileException, SystemException, IndexCoreException, TextFormatReaderException, TaskException, RegExpException, RpmException, and GzipException.