Deepsolver
|
The info file syntax error. More...
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 the single line error description. | |
std::string | getType () const |
Returns the string with error type. | |
InfoFileSyntaxException (int code, size_t lineNumber, const std::string &line) | |
The constructor. | |
virtual | ~InfoFileSyntaxException () |
The destructor. |
FIXME
InfoFileSyntaxException::InfoFileSyntaxException | ( | int | code, |
size_t | lineNumber, | ||
const std::string & | line | ||
) | [inline] |
[in] | code | The error code |
[in] | lineNumber | The number of the invalid line |
[in] | line | The invalid line content |
int InfoFileSyntaxException::getCode | ( | ) | const [inline] |
Use this method to get the error code
std::string InfoFileSyntaxException::getLine | ( | ) | const [inline] |
Use this method to get content of the line caused the parsing problem.
size_t InfoFileSyntaxException::getLineNumber | ( | ) | const [inline] |
Use this method to get number of the invalid line.
std::string InfoFileSyntaxException::getMessage | ( | ) | const [inline, virtual] |
This method returns the 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 InfoFileSyntaxException::getType | ( | ) | const [inline, virtual] |
This method returns the short string with one or two words describing the error type. For example, this method can return values like "system", "rpm" etc. The value returned by this method usually is used for error message construction.
Implements DeepsolverException.