Deepsolver
Public Types | Public Member Functions
InfoFileSyntaxException Class Reference

The info file syntax error. More...

Inheritance diagram for InfoFileSyntaxException:
InfoFileException DeepsolverException

List of all members.

Public Types

enum  { UnexpectedCharacter = 0, IncompleteLine = 1 }

Public Member Functions

int getCode () const
 Returns the error code.
std::string getLine () const
 Returns the line caused the problem.
size_t getLineNumber () const
 Returns number of the invalid line.
std::string getMessage () const
 Returns a single line error description.
std::string getType () const
 Returns a string with error type.
 InfoFileSyntaxException (int code, size_t lineNumber, const std::string &line)
 The constructor.
virtual ~InfoFileSyntaxException ()
 The destructor.

Detailed Description

FIXME

See also:
InfoFileReaderInfoFileException InfoFileValueException

Constructor & Destructor Documentation

InfoFileSyntaxException::InfoFileSyntaxException ( int  code,
size_t  lineNumber,
const std::string &  line 
) [inline]
Parameters:
[in]codeThe error code
[in]lineNumberThe number of the invalid line
[in]lineThe invalid line content

Member Function Documentation

int InfoFileSyntaxException::getCode ( ) const [inline]

Use this method to get the error code

Returns:
The error code
std::string InfoFileSyntaxException::getLine ( ) const [inline]

Use this method to get content of the line caused the parsing problem.

Returns:
The line caused problem
size_t InfoFileSyntaxException::getLineNumber ( ) const [inline]

Use this method to get number of the invalid line.

Returns:
The number of the line caused the problem
std::string InfoFileSyntaxException::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 InfoFileSyntaxException::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.