The exception that is thrown when an unexpected token/grammatical error is encountered during the parsing of a text file.
More...
#include <luciad/Exception.h>
|
| | ParseException (const std::string &reason) |
| | Creates an exception that can be thrown when an unexpected token/grammatical error is encountered during parsing.
|
| | ParseException (const std::string &reason, size_t pos) |
| | Creates an exception that can be thrown when an unexpected token/grammatical error is encountered during parsing.
|
| | ParseException (const std::string &reason, size_t pos, const Exception &innerException) |
| | Creates an exception that can be thrown when an unexpected token/grammatical error is encountered during parsing.
|
| | Exception (std::string message) |
| | Initializes a new instance of the Exception class with a specified error message.
|
| | Exception (std::string message, const Exception &innerException) |
| | Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.
|
| virtual | ~Exception () |
| std::optional< Exception > | getInnerException () const |
| | Returns the inner exception that caused this exception.
|
| std::string | getStackTrace () const |
| | Returns the string representation of the stack trace including all the inner exceptions stack traces.
|
| std::string | what () const |
| | Returns the message that describes the error.
|
The exception that is thrown when an unexpected token/grammatical error is encountered during the parsing of a text file.
Pos is the character where the exception was triggered.
◆ ParseException() [1/3]
| luciad::ParseException::ParseException |
( |
const std::string & | reason | ) |
|
|
explicit |
Creates an exception that can be thrown when an unexpected token/grammatical error is encountered during parsing.
- Parameters
-
| reason | the message that describes the error |
◆ ParseException() [2/3]
| luciad::ParseException::ParseException |
( |
const std::string & | reason, |
|
|
size_t | pos ) |
Creates an exception that can be thrown when an unexpected token/grammatical error is encountered during parsing.
- Parameters
-
| reason | the message that describes the error |
| pos | the position in the source where the parse error originates |
◆ ParseException() [3/3]
| luciad::ParseException::ParseException |
( |
const std::string & | reason, |
|
|
size_t | pos, |
|
|
const Exception & | innerException ) |
Creates an exception that can be thrown when an unexpected token/grammatical error is encountered during parsing.
- Parameters
-
| reason | the message that describes the error |
| pos | the position in the source where the parse error originates |
| innerException | an other exception that caused this exception |