The exception class for general operation problems.
More...
List of all members.
Public Types |
enum | { InvalidInfoFile = 0,
InvalidChecksumData = 1,
BrokenIndexFile = 2,
InternalIOProblem = 3
} |
Public Member Functions |
std::string | getArg () const |
| Returns the optional string argument of the error occurred.
|
int | getCode () const |
| Returns the error code.
|
std::string | getMessage () const |
std::string | getType () const |
| OperationException (int code) |
| The constructor.
|
| OperationException (int code, const std::string &arg) |
| 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] |
OperationException::OperationException |
( |
int |
code, |
|
|
const std::string & |
arg |
|
) |
| [inline] |
- Parameters:
-
[in] | code | The error code |
[in] | arg | The optional string argument |
Member Function Documentation
std::string OperationException::getArg |
( |
| ) |
const [inline] |
Argument meaning depends on error type.
- Returns:
- The optional string argument of the error
int OperationException::getCode |
( |
| ) |
const [inline] |
Use this method to get error code.
- Returns:
- The error code