Deepsolver
|
Indicates an error inside of package back-end layer. More...
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. |
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.
PackageBackEndException::PackageBackEndException | ( | const std::string & | fnName | ) | [inline] |
[in] | fnName | A name of a failed function |
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.
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.
Implements DeepsolverException.