Deepsolver
|
The exception class for invalid info file value error indication FIXME. More...
Public Types | |
enum | { InvalidFormatType = 0, InvalidCompressionType = 1, InvalidBooleanValue = 2 } |
Public Member Functions | |
const std::string & | getArg () const |
Returns the error argument. | |
int | getCode () const |
Returns the error code. | |
std::string | getMessage () const |
Returns a single line error description. | |
std::string | getType () const |
Returns a string with error type. | |
InfoFileValueException (int code, const std::string &arg) | |
The constructor. | |
virtual | ~InfoFileValueException () |
The destructor. |
InfoFileValueException::InfoFileValueException | ( | int | code, |
const std::string & | arg | ||
) | [inline] |
[in] | code | The error code |
[in] | arg | The string error argument |
const std::string& InfoFileValueException::getArg | ( | ) | const [inline] |
Use this method to get string argument of the error.
int InfoFileValueException::getCode | ( | ) | const [inline] |
Use this method to get code of the error.
std::string InfoFileValueException::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 InfoFileValueException::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", "rpm" etc. A value returned by this method usually is used for error message construction.
Implements DeepsolverException.