Deepsolver
Public Member Functions
Deepsolver::DeepsolverException Class Reference

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

Inheritance diagram for Deepsolver::DeepsolverException:
Deepsolver::ConfigException Deepsolver::ConfigFileException Deepsolver::CurlException Deepsolver::GzipException Deepsolver::IndexCoreException Deepsolver::InfoFileException Deepsolver::Md5FileException Deepsolver::NotImplementedException Deepsolver::PackageBackEndException Deepsolver::RegExpException Deepsolver::SystemException Deepsolver::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.


Member Function Documentation

virtual std::string Deepsolver::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 Deepsolver::NotImplementedException, Deepsolver::PackageBackEndException, Deepsolver::Md5FileException, Deepsolver::RegExpException, Deepsolver::CurlException, Deepsolver::GzipException, Deepsolver::InfoFileValueException, Deepsolver::InfoFileSyntaxException, Deepsolver::ConfigException, Deepsolver::ConfigFileException, Deepsolver::IndexCoreException, Deepsolver::TaskException, and Deepsolver::SystemException.

virtual std::string Deepsolver::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 Deepsolver::NotImplementedException, Deepsolver::PackageBackEndException, Deepsolver::Md5FileException, Deepsolver::RegExpException, Deepsolver::CurlException, Deepsolver::GzipException, Deepsolver::InfoFileValueException, Deepsolver::InfoFileSyntaxException, Deepsolver::ConfigException, Deepsolver::ConfigFileException, Deepsolver::IndexCoreException, Deepsolver::TaskException, and Deepsolver::SystemException.