Expression exception.
More...
#include <base/math/ExpressionException.h>
Inherits Exception.
Expression exception.
This exception is raised by ExpressionParser on errors in an expression representation.
- See also
- ExpressionParser
- Version
- 1.0
- Examples
- testsuite/eval.cpp.
◆ ExpressionException() [1/5]
ExpressionException::ExpressionException |
( |
| ) |
|
|
noexcept |
Initializes the exception with no message.
◆ ExpressionException() [2/5]
ExpressionException::ExpressionException |
( |
const char * |
message | ) |
|
|
noexcept |
Initializes the exception with the specified message.
- Parameters
-
◆ ExpressionException() [3/5]
ExpressionException::ExpressionException |
( |
unsigned int |
index, |
|
|
const char * |
message |
|
) |
| |
|
noexcept |
Initializes the exception with the specified index and message.
- Parameters
-
index | The index of the error. |
message | The message. |
◆ ExpressionException() [4/5]
ExpressionException::ExpressionException |
( |
const Type & |
type | ) |
|
|
inlinenoexcept |
Initializes the exception object without an associated message.
- Parameters
-
type | The identity of the type. |
◆ ExpressionException() [5/5]
ExpressionException::ExpressionException |
( |
const char * |
message, |
|
|
const Type & |
type |
|
) |
| |
|
inlinenoexcept |
Initializes the exception object.
- Parameters
-
message | An NULL-terminated string (ASCII). |
type | The identity of the type. |
◆ getIndex()
unsigned int ExpressionException::getIndex |
( |
| ) |
const |
|
inlinenoexcept |
Returns the index of the error in the expression representation.
- Examples
- testsuite/eval.cpp.
◆ index
unsigned int ExpressionException::index = 0 |
|
protected |
Specifies the index the error in the expression representation.