Deepsolver
Public Member Functions
OperationException Class Reference

The exception class for general operation problems. More...

List of all members.

Public Member Functions

int getCode () const
 Returns the error code.
std::string getMessage () const
std::string getType () const
 Returns the type of exception.
 OperationException (int code)
 The constructor.
virtual ~OperationException ()
 The destructor.

Detailed Description

This class is purposed for various general operation problems. The errors can be thrown only by the methods of OperationCore class covering transaction processing as well as index updating. General error types are checksum mismatch, invalid content of repo file and so on. Downloading problems have their own exception class called CurlException.

See also:
OperationCore CurlException System Exception RpmException

Constructor & Destructor Documentation

OperationException::OperationException ( int  code) [inline]
Parameters:
[in]codeThe error code

Member Function Documentation

int OperationException::getCode ( ) const [inline]

Use this method to get error code.

Returns:
The error code
std::string OperationException::getType ( ) const [inline]

Use this method to get type of exception (always "operation" by this class).

Returns:
The type of exception (always "operation")