Objects of this class represent an exception in the evaluation of an ELAM expression. More...
#include <elamvalue.h>
Public Types | |
| enum | ErrorType { NoError =0, ParserError, UnknownOperatorError, UnknownFunctionError, UnknownValueError, TypeMismatchError, ArgumentListError, OperationError } |
| Type of Exception. More... | |
Public Member Functions | |
| Exception (const Exception &) | |
| instantiates a copy of an exception More... | |
| Exception (const QVariant &) | |
| instantiate a copy from a matching variant More... | |
| Exception (ErrorType type=NoError, QString errorText=QString(), Position pos=Position()) | |
| instantiates an exception More... | |
| Exception (ErrorType type, Position pos, QString errorText=QString()) | |
| instantiates an exception More... | |
| Exception & | operator= (const Exception &) |
| copies an exception More... | |
| QString | errorText () const |
| returns the describing text of the exception (if existing) More... | |
| ErrorType | errorType () const |
| type of error represented by the exception More... | |
| QString | errorTypeName () const |
| returns a human readable error type name of this exception More... | |
| Position | errorPos () const |
| the position in the original expression where the error originated More... | |
| Position | position () const |
| the position in the original expression where the error originated More... | |
| int | errorLine () const |
| the line in the original expression where the error originated More... | |
| int | errorColumn () const |
| the column in the original expression where the error originated More... | |
| void | setPosition (Position p) |
| overrides the exceptions position More... | |
| operator QVariant () const | |
| converts the exception to a variant More... | |
Static Public Member Functions | |
| static int | metaTypeId () |
| the meta type ID (used with QVariant) of the exception type More... | |
Objects of this class represent an exception in the evaluation of an ELAM expression.
Type of Exception.
| ELAM::Exception::Exception | ( | const Exception & | ) |
instantiates a copy of an exception
| ELAM::Exception::Exception | ( | const QVariant & | ) |
instantiate a copy from a matching variant
| ELAM::Exception::Exception | ( | ErrorType | type = NoError, |
| QString | errorText = QString(), |
||
| Position | pos = Position() |
||
| ) |
instantiates an exception
| type | the type of exception |
| errorText | some human readable text describing the problem |
| pos | the position in the original expression string where the problem occurred |
instantiates an exception
| type | the type of exception |
| errorText | some human readable text describing the problem |
| pos | the position in the original expression string where the problem occurred |
|
inline |
the column in the original expression where the error originated
|
inline |
the line in the original expression where the error originated
|
inline |
the position in the original expression where the error originated
|
inline |
returns the describing text of the exception (if existing)
|
inline |
type of error represented by the exception
| QString ELAM::Exception::errorTypeName | ( | ) | const |
returns a human readable error type name of this exception
|
static |
the meta type ID (used with QVariant) of the exception type
|
inline |
converts the exception to a variant
|
inline |
the position in the original expression where the error originated
|
inline |
overrides the exceptions position
1.8.8