Deepsolver
Public Member Functions
PackageBackEndException Class Reference

Indicates an error inside of package back-end layer. More...

Inheritance diagram for PackageBackEndException:
DeepsolverException

List of all members.

Public Member Functions

std::string getMessage () const
 Returns a single line error description.
std::string getType () const
 Returns a string with error type.
 PackageBackEndException (const std::string &fnName)
 The constructor.

Detailed Description

This class represents an exception in package back-end layer. There can be several package back-end implementation (rpm, dpkg, etc) but all of them should use this type of exceptions to unify errors handling in command line tools and other libdeepsolver clients. The preferable argument for this class instance is a failed function name.


Constructor & Destructor Documentation

PackageBackEndException::PackageBackEndException ( const std::string &  fnName) [inline]
Parameters:
[in]fnNameA name of a failed function

Member Function Documentation

std::string PackageBackEndException::getMessage ( ) const [inline, 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

Implements DeepsolverException.

std::string PackageBackEndException::getType ( ) const [inline, 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

Implements DeepsolverException.