Deepsolver
Public Types | Public Member Functions
OperationException Class Reference

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

List of all members.

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.

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 PackageBackEndException

Constructor & Destructor Documentation

OperationException::OperationException ( int  code) [inline]
Parameters:
[in]codeThe error code
OperationException::OperationException ( int  code,
const std::string &  arg 
) [inline]
Parameters:
[in]codeThe error code
[in]argThe 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