ParseError Class Reference
|
Ratpac-two
|
RAT::ParseError Class Reference
#include <DBExceptions.hh>
Inheritance diagram for RAT::ParseError:
Public Member Functions | |
| ParseError (int lnum, int cnum, std::string l, std::string mes) | |
| std::string | GetFull () const |
| bool | operator== (const ParseError &other) const |
Public Attributes | |
| int | linenum |
| int | colnum |
| std::string | line |
| std::string | message |
Detailed Description
Exception: Error parsing RATDB text file
Constructor & Destructor Documentation
◆ ParseError()
|
inline |
Create new parse error.
- Parameters
-
lnum Line number in text file where error occurred. colnum Column number in text file where error occurred. l Contents of erroneous line from file. mes Message explaining specific error.
Member Function Documentation
◆ GetFull()
|
inline |
Return formatted string explaining parse error.
This method creates a user-readable string which shows where the error ocurred and the problem line.
◆ operator==()
|
inline |
Compare equality between two ParseError objects by comparing all fields.
Member Data Documentation
◆ colnum
| int RAT::ParseError::colnum |
Column number of error.
◆ line
| std::string RAT::ParseError::line |
Line containing error.
◆ linenum
| int RAT::ParseError::linenum |
Line number of error.
◆ message
| std::string RAT::ParseError::message |
Message explaining error.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/db/include/RAT/DBExceptions.hh
Generated by