Class ExpressionErrorCodes
java.lang.Object
com.aquima.interactions.expressions.definition.ExpressionErrorCodes
This class contains all the error codes for all the errors and warnings that may occur during the parsing of
expressions.
All errors should at least include the following information: - position (consisting of offset and unit-name) - node
type (operator, Select, function) - node expression fragment
Example message structure: - {message} in {position} for node {node-type} ({node-expression-fragment}) - Incompatible
types: text <-> integer in Person.age-default-expr at 120(1:119) for node + (... "leeftijd" + 12 ...)
message: This is the message explaining the problem and hints for a possible solution. position: The information
about the position within the expression including the 'id' of the expression. node-type: The node type for which the
error occurred ( +, -, select, ALL, ... etc ) node-expression-fragment: The fragment which is the cause of the
problem, not the entire substructure but a simple short expression of max 40 characters where the problem occurred.
This can either be the current node.toString() or a dedicated string factory accepting any semantic node.
- Since:
- 5.0
- Author:
- O. Kerpershoek, F. van der Meer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ErrorCode
static final ErrorCode
This error code is used to indicate that no attribute definition could be found for the specified name.static final ErrorCode
This error code is used to indicate that an unknown expression template is used in the expression.static final ErrorCode
static final ErrorCode
This error code is used to indicate an expression should have braces around it ( 1 argument: the condition )static final ErrorCode
This error code is used to indicate that a type cast is not allowed.static final ErrorCode
This error code is used to warn about an implicit conversion from a list to a single value.static final ErrorCode
This error code is used to warn about an implicit conversion from a list to a single value.static final ErrorCode
This error code is used to warn about an implicit conversion from a list to a single value.static final ErrorCode
This error code is used to warn about an implicit conversion to a stringstatic final ErrorCode
"Powering to a currency is not allowed (i.e.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
substracting a percentage with a currency is not allowed.static final ErrorCode
Adding a percentage with a currency is not allowed.static final ErrorCode
"Powering to a currency is not allowed (i.e.static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
static final ErrorCode
Root error code for expression engine initialization.static final ErrorCode
static final ErrorCode
This error code is used to indicate that a condition expression should result in a boolean.static final ErrorCode
This error code is used to indicate that a boolean expression was expected at the left-hand-side.static final ErrorCode
This error code is used to indicate that a boolean expression was expected at the left-hand-side.static final ErrorCode
This error code is used to indicate that a NOT expression should be followed by a boolean expression.static final ErrorCode
This error code is used to indicate that another type expression was expected at the left-hand-side.static final ErrorCode
This error code is used to indicate that another type expression was expected at the left-hand-side.static final ErrorCode
This error code is used to indicate that an entity type expression was expected.static final ErrorCode
This error code is used to indicate that a UMINUS symbol should be followed by a numeric expression.static final ErrorCode
This error code is used to indicate that a numeric expression was expected.static final ErrorCode
This error code is used to indicate that the left hand side should be single value.static final ErrorCode
This error code is used to indicate that the right-hand-side should be single value.static final ErrorCode
This error code is used to indicate that a single valued expression was expected at the left-hand-side.static final ErrorCode
This error code is used to indicate that a single valued expression was expected at the right-hand-side.static final ErrorCode
This error code is used to indicate that a single valued expression was expected.static final ErrorCode
This error code is used to indicate that an entity type expression was expected.static final ErrorCode
This error code is used to indicate that a function is used in the expression for which the arguments where not validstatic final ErrorCode
This error code is used to indicate that an unknown function is used in the expression.static final ErrorCode
This error code is used to indicate that an invalid value for the current domain is used in the expression.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error code is used to indicate a fatal parse error.static final ErrorCode
This error code is used to indicate a format of a TSL field could not be parsed.static final ErrorCode
This error code is used to indicate a fatal lexical error.static final ErrorCode
This error code is used to indicate a local variable hides an entity type.static final ErrorCode
This error code is used to indicate a local variable hides another local variable.static final ErrorCode
This error code is used to indicate an expression should not use multi value dotted attributes.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
static final ErrorCode
static final ErrorCode
This error code is used to indicate a fatal parse error.static final ErrorCode
This error code is used to indicate a problem with an expression template.static final ErrorCode
This error code is used to indicate an unknown instance is used in the expression.static final ErrorCode
This error code is used to indicate that an unknown expression template is used in the expression.static final ErrorCode
This error code is used to indicate an incorrect usage of the ? (unknown) symbol.static final ErrorCode
This error code is used to indicate an unknown object (entity) is used in the expression.static final ErrorCode
static final ErrorCode
This error is used to indicate a problem with the 2 types and the operation.static final ErrorCode
This error code is used to indicate that a variable declaration could not be found for the specified name. -
Method Summary
-
Field Details
-
CONVERSION_LOSS_OF_PRECISION
This error code is used to warn about an implicit conversion from a list to a single value. -
ENGINE_ROOT_ERROR
Root error code for expression engine initialization. -
CONVERSION_TO_STRING
This error code is used to warn about an implicit conversion to a string -
CONVERSION_TO_SINGLE_VALUE
This error code is used to warn about an implicit conversion from a list to a single value. -
CONVERSION_TO_MULTI_VALUE
This error code is used to warn about an implicit conversion from a list to a single value. -
CONVERSION_INCOMPATIBLE_CAST
This error code is used to indicate that a type cast is not allowed. -
EXPECTED_BOOLEAN_CONDLEFT
This error code is used to indicate that a boolean expression was expected at the left-hand-side. -
EXPECTED_DATATYPE_CONDRIGHT
This error code is used to indicate that another type expression was expected at the left-hand-side. -
EXPECTED_DATATYPE_CONDLEFT
This error code is used to indicate that another type expression was expected at the left-hand-side. -
EXPECTED_BOOLEAN_CONDRIGHT
This error code is used to indicate that a boolean expression was expected at the left-hand-side. -
EXPECTED_SINGLE_CONDLEFT
This error code is used to indicate that a single valued expression was expected at the left-hand-side. -
EXPECTED_SINGLE_CONDRIGHT
This error code is used to indicate that a single valued expression was expected at the right-hand-side. -
EXPECTED_SINGLE_EXPRESSION
This error code is used to indicate that a single valued expression was expected. -
TEMPLATE_PROBLEM
This error code is used to indicate a problem with an expression template. -
INTERNAL_PARSE_ERROR
This error code is used to indicate a fatal parse error. -
LEXER_ERROR
This error code is used to indicate a fatal lexical error. -
SYNTAX_ERROR
This error code is used to indicate a fatal parse error. -
UNKNOWN_USAGE
This error code is used to indicate an incorrect usage of the ? (unknown) symbol. -
UNKOWN_ENTITY
This error code is used to indicate an unknown object (entity) is used in the expression. -
UNKNOWN_INSTANCE
This error code is used to indicate an unknown instance is used in the expression. -
EXPECTED_SINGLE_ARITHLEFT
This error code is used to indicate that the left hand side should be single value. -
EXPECTED_SINGLE_ARITHRIGHT
This error code is used to indicate that the right-hand-side should be single value. -
EXPECTED_NUMERIC_TYPE
This error code is used to indicate that a numeric expression was expected. -
FUNCTION_LOCATE
This error code is used to indicate that a function is used in the expression for which the arguments where not valid -
FUNCTION_LOCATE_NAME
This error code is used to indicate that an unknown function is used in the expression. -
UNKNOWN_TEMPLATE
This error code is used to indicate that an unknown expression template is used in the expression. ( one argument: the name of the expression template ) -
CIRCULAR_TEMPLATE
This error code is used to indicate that an unknown expression template is used in the expression. ( 2 argumments: template 1 attempted to re-use 2 but it already used 1 either directly or indirectly. ) -
ILLEGAL_VALUE
This error code is used to indicate that an invalid value for the current domain is used in the expression. -
EXPECTED_BOOLEAN_COND
This error code is used to indicate that a condition expression should result in a boolean. -
EXPECTED_NUMERIC_INVERSE
This error code is used to indicate that a UMINUS symbol should be followed by a numeric expression. -
EXPECTED_BOOLEAN_NOTCLAUSE
This error code is used to indicate that a NOT expression should be followed by a boolean expression. -
EXPECTED_ENTITY_TYPE
This error code is used to indicate that an entity type expression was expected. -
EXPECTED_STRING_TYPE
This error code is used to indicate that an entity type expression was expected. -
ATTRIBUTE_LOCATE_VAR
This error code is used to indicate that no attribute definition could be found for the specified name. -
VARIALBE_NOTDECLARED
This error code is used to indicate that a variable declaration could not be found for the specified name. -
INVALID_FIELD_FORMAT
This error code is used to indicate a format of a TSL field could not be parsed. -
CONDITION_WITHOUT_BRACES
This error code is used to indicate an expression should have braces around it ( 1 argument: the condition ) -
MULTIVALUE_DOTTED_ATTRIBUTE
This error code is used to indicate an expression should not use multi value dotted attributes. -
UNSUPPORTED_ARITHMETIC_TYPES
This error is used to indicate a problem with the 2 types and the operation. -
CURRENCY_PERCENTAGE_PLUS
Adding a percentage with a currency is not allowed. (Use explicit conversion functions if this was actually intended -
CURRENCY_PERCENTAGE_MINUS
substracting a percentage with a currency is not allowed. (Use explicit conversion functions if this was actually intended -
CURRENCY_PERCENTAGE_POWER
"Powering to a currency is not allowed (i.e. 10**50 euro's yield unintended results)", -
CURRENCY_CURRENCY_POWER
"Powering to a currency is not allowed (i.e. 10 euro's**50 euro's yield unintended results)", -
INTEGER_CURRENCY_DIVISION
This error is used to indicate a problem with the 2 types and the operation. -
INTEGER_CURRENCY_INT_DIVISION
This error is used to indicate a problem with the 2 types and the operation. -
INTEGER_CURRENCY_MODULO
This error is used to indicate a problem with the 2 types and the operation. -
INTEGER_CURRENCY_POWER
This error is used to indicate a problem with the 2 types and the operation. -
CURRENCY_NUMBER_PLUS
This error is used to indicate a problem with the 2 types and the operation. -
CURRENCY_NUMBER_MINUS
This error is used to indicate a problem with the 2 types and the operation. -
CURRENCY_NUMBER_POWER
This error is used to indicate a problem with the 2 types and the operation. -
CURRENCY_INTEGER_PLUS
This error is used to indicate a problem with the 2 types and the operation. -
CURRENCY_INTEGER_MINUS
This error is used to indicate a problem with the 2 types and the operation. -
CURRENCY_INTEGER_POWER
This error is used to indicate a problem with the 2 types and the operation. -
PERCENTAGE_CURRENCY_DIVISION
This error is used to indicate a problem with the 2 types and the operation. -
PERCENTAGE_CURRENCY_POWER
This error is used to indicate a problem with the 2 types and the operation. -
NUMBER_CURRENCY_PLUS
This error is used to indicate a problem with the 2 types and the operation. -
NUMBER_CURRENCY_MINUS
This error is used to indicate a problem with the 2 types and the operation. -
NUMBER_CURRENCY_DIVISION
This error is used to indicate a problem with the 2 types and the operation. -
NUMBER_CURRENCY_POWER
This error is used to indicate a problem with the 2 types and the operation. -
INTEGER_CURRENCY_PLUS
This error is used to indicate a problem with the 2 types and the operation. -
INTEGER_CURRENCY_MINUS
This error is used to indicate a problem with the 2 types and the operation. -
PERCENTAGE_CURRENCY_PLUS
This error is used to indicate a problem with the 2 types and the operation. -
PERCENTAGE_CURRENCY_MINUS
This error is used to indicate a problem with the 2 types and the operation. -
DEPRECATED_LIST_FROM_WHERE_EXPRESSION
-
DEPRECATED_EXISTS_FROM
-
DEPRECATED_EXISTS_FROM_WHERE
-
DEPRECATED_LIST_OPERATION_FROM
-
DEPRECATED_LIST_OPERATION_FROM_WHERE
-
DEPRECATED_LIST_OPERATION
-
DEPRECATED_LIST_OPERATION_WHERE
-
DEPRECATED_LIST_WHERE_EXPRESSION
-
DEPRECATED_LIST_FROM_EXPRESSION
-
DEPRECATED_DATECREATION
-
PLUS_ON_LIST
-
COLLECT_EXPRESSION_MISSING_ALIAS
-
EACH_EXISTS_ISACTIVE_EXPRESSION_MISSING_ALIAS
-
EXISTS_ALL
-
ALL_EXPRESSION_NEEDED
-
SEMANTIC_ERROR
-
UNPACK_INVALID_ARGUMENTS
-
DEPRECATED_FUNCTION
-
LOCAL_VARIABLE_HIDES_INSTANCE
This error code is used to indicate a local variable hides an entity type. -
LOCAL_VARIABLE_HIDES_VARIABLE
This error code is used to indicate a local variable hides another local variable. -
DEPRECATED_R4ANY_EXPRESSION
-
DEPRECATED_R4OCCURS_EXPRESSION
-