Deepsolver
Public Types | Public Member Functions
InfoFileValueException Class Reference

The exception class for invalid info file value error indication FIXME. More...

Inheritance diagram for InfoFileValueException:
InfoFileException DeepsolverException

List of all members.

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.

Detailed Description

See also:
InfoFileReader RepoParams InfoFileException InfoFileSyntaxException

Constructor & Destructor Documentation

InfoFileValueException::InfoFileValueException ( int  code,
const std::string &  arg 
) [inline]
Parameters:
[in]codeThe error code
[in]argThe string error argument

Member Function Documentation

const std::string& InfoFileValueException::getArg ( ) const [inline]

Use this method to get string argument of the error.

Returns:
The error argument
int InfoFileValueException::getCode ( ) const [inline]

Use this method to get code of the error.

Returns:
The error code
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.

Returns:
A single line error description

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.

Returns:
A short string with error type description

Implements DeepsolverException.