Deepsolver
|
The exception class for general operation problems. More...
Public Types | |
enum | { InvalidInfoFile, InvalidChecksumData, BrokenIndexFile, InternalIOProblem, LimitExceeded } |
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. |
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.
OperationException::OperationException | ( | int | code | ) | [inline] |
[in] | code | The error code |
OperationException::OperationException | ( | int | code, |
const std::string & | arg | ||
) | [inline] |
[in] | code | The error code |
[in] | arg | The optional string argument |
std::string OperationException::getArg | ( | ) | const [inline] |
Argument meaning depends on error type.
int OperationException::getCode | ( | ) | const [inline] |
Use this method to get error code.