Class ExpressionErrorCodes

java.lang.Object
com.aquima.interactions.expressions.definition.ExpressionErrorCodes

public final class ExpressionErrorCodes extends Object
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 Details

    • CONVERSION_LOSS_OF_PRECISION

      public static final ErrorCode 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

      public static final ErrorCode ENGINE_ROOT_ERROR
      Root error code for expression engine initialization.
    • CONVERSION_TO_STRING

      public static final ErrorCode CONVERSION_TO_STRING
      This error code is used to warn about an implicit conversion to a string
    • CONVERSION_TO_SINGLE_VALUE

      public static final ErrorCode 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

      public static final ErrorCode 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

      public static final ErrorCode CONVERSION_INCOMPATIBLE_CAST
      This error code is used to indicate that a type cast is not allowed.
    • EXPECTED_BOOLEAN_CONDLEFT

      public static final ErrorCode EXPECTED_BOOLEAN_CONDLEFT
      This error code is used to indicate that a boolean expression was expected at the left-hand-side.
    • EXPECTED_DATATYPE_CONDRIGHT

      public static final ErrorCode EXPECTED_DATATYPE_CONDRIGHT
      This error code is used to indicate that another type expression was expected at the left-hand-side.
    • EXPECTED_DATATYPE_CONDLEFT

      public static final ErrorCode EXPECTED_DATATYPE_CONDLEFT
      This error code is used to indicate that another type expression was expected at the left-hand-side.
    • EXPECTED_BOOLEAN_CONDRIGHT

      public static final ErrorCode EXPECTED_BOOLEAN_CONDRIGHT
      This error code is used to indicate that a boolean expression was expected at the left-hand-side.
    • EXPECTED_SINGLE_CONDLEFT

      public static final ErrorCode 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

      public static final ErrorCode 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

      public static final ErrorCode EXPECTED_SINGLE_EXPRESSION
      This error code is used to indicate that a single valued expression was expected.
    • TEMPLATE_PROBLEM

      public static final ErrorCode TEMPLATE_PROBLEM
      This error code is used to indicate a problem with an expression template.
    • INTERNAL_PARSE_ERROR

      public static final ErrorCode INTERNAL_PARSE_ERROR
      This error code is used to indicate a fatal parse error.
    • LEXER_ERROR

      public static final ErrorCode LEXER_ERROR
      This error code is used to indicate a fatal lexical error.
    • SYNTAX_ERROR

      public static final ErrorCode SYNTAX_ERROR
      This error code is used to indicate a fatal parse error.
    • UNKNOWN_USAGE

      public static final ErrorCode UNKNOWN_USAGE
      This error code is used to indicate an incorrect usage of the ? (unknown) symbol.
    • UNKOWN_ENTITY

      public static final ErrorCode UNKOWN_ENTITY
      This error code is used to indicate an unknown object (entity) is used in the expression.
    • UNKNOWN_INSTANCE

      public static final ErrorCode UNKNOWN_INSTANCE
      This error code is used to indicate an unknown instance is used in the expression.
    • EXPECTED_SINGLE_ARITHLEFT

      public static final ErrorCode EXPECTED_SINGLE_ARITHLEFT
      This error code is used to indicate that the left hand side should be single value.
    • EXPECTED_SINGLE_ARITHRIGHT

      public static final ErrorCode EXPECTED_SINGLE_ARITHRIGHT
      This error code is used to indicate that the right-hand-side should be single value.
    • EXPECTED_NUMERIC_TYPE

      public static final ErrorCode EXPECTED_NUMERIC_TYPE
      This error code is used to indicate that a numeric expression was expected.
    • FUNCTION_LOCATE

      public static final ErrorCode 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

      public static final ErrorCode FUNCTION_LOCATE_NAME
      This error code is used to indicate that an unknown function is used in the expression.
    • UNKNOWN_TEMPLATE

      public static final ErrorCode 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

      public static final ErrorCode 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

      public static final ErrorCode 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

      public static final ErrorCode EXPECTED_BOOLEAN_COND
      This error code is used to indicate that a condition expression should result in a boolean.
    • EXPECTED_NUMERIC_INVERSE

      public static final ErrorCode EXPECTED_NUMERIC_INVERSE
      This error code is used to indicate that a UMINUS symbol should be followed by a numeric expression.
    • EXPECTED_BOOLEAN_NOTCLAUSE

      public static final ErrorCode EXPECTED_BOOLEAN_NOTCLAUSE
      This error code is used to indicate that a NOT expression should be followed by a boolean expression.
    • EXPECTED_ENTITY_TYPE

      public static final ErrorCode EXPECTED_ENTITY_TYPE
      This error code is used to indicate that an entity type expression was expected.
    • EXPECTED_STRING_TYPE

      public static final ErrorCode EXPECTED_STRING_TYPE
      This error code is used to indicate that an entity type expression was expected.
    • ATTRIBUTE_LOCATE_VAR

      public static final ErrorCode ATTRIBUTE_LOCATE_VAR
      This error code is used to indicate that no attribute definition could be found for the specified name.
    • VARIALBE_NOTDECLARED

      public static final ErrorCode VARIALBE_NOTDECLARED
      This error code is used to indicate that a variable declaration could not be found for the specified name.
    • INVALID_FIELD_FORMAT

      public static final ErrorCode INVALID_FIELD_FORMAT
      This error code is used to indicate a format of a TSL field could not be parsed.
    • CONDITION_WITHOUT_BRACES

      public static final ErrorCode CONDITION_WITHOUT_BRACES
      This error code is used to indicate an expression should have braces around it ( 1 argument: the condition )
    • MULTIVALUE_DOTTED_ATTRIBUTE

      public static final ErrorCode MULTIVALUE_DOTTED_ATTRIBUTE
      This error code is used to indicate an expression should not use multi value dotted attributes.
    • UNSUPPORTED_ARITHMETIC_TYPES

      public static final ErrorCode UNSUPPORTED_ARITHMETIC_TYPES
      This error is used to indicate a problem with the 2 types and the operation.
    • CURRENCY_PERCENTAGE_PLUS

      public static final ErrorCode CURRENCY_PERCENTAGE_PLUS
      Adding a percentage with a currency is not allowed. (Use explicit conversion functions if this was actually intended
    • CURRENCY_PERCENTAGE_MINUS

      public static final ErrorCode CURRENCY_PERCENTAGE_MINUS
      substracting a percentage with a currency is not allowed. (Use explicit conversion functions if this was actually intended
    • CURRENCY_PERCENTAGE_POWER

      public static final ErrorCode CURRENCY_PERCENTAGE_POWER
      "Powering to a currency is not allowed (i.e. 10**50 euro's yield unintended results)",
    • CURRENCY_CURRENCY_POWER

      public static final ErrorCode CURRENCY_CURRENCY_POWER
      "Powering to a currency is not allowed (i.e. 10 euro's**50 euro's yield unintended results)",
    • INTEGER_CURRENCY_DIVISION

      public static final ErrorCode INTEGER_CURRENCY_DIVISION
      This error is used to indicate a problem with the 2 types and the operation.
    • INTEGER_CURRENCY_INT_DIVISION

      public static final ErrorCode INTEGER_CURRENCY_INT_DIVISION
      This error is used to indicate a problem with the 2 types and the operation.
    • INTEGER_CURRENCY_MODULO

      public static final ErrorCode INTEGER_CURRENCY_MODULO
      This error is used to indicate a problem with the 2 types and the operation.
    • INTEGER_CURRENCY_POWER

      public static final ErrorCode INTEGER_CURRENCY_POWER
      This error is used to indicate a problem with the 2 types and the operation.
    • CURRENCY_NUMBER_PLUS

      public static final ErrorCode CURRENCY_NUMBER_PLUS
      This error is used to indicate a problem with the 2 types and the operation.
    • CURRENCY_NUMBER_MINUS

      public static final ErrorCode CURRENCY_NUMBER_MINUS
      This error is used to indicate a problem with the 2 types and the operation.
    • CURRENCY_NUMBER_POWER

      public static final ErrorCode CURRENCY_NUMBER_POWER
      This error is used to indicate a problem with the 2 types and the operation.
    • CURRENCY_INTEGER_PLUS

      public static final ErrorCode CURRENCY_INTEGER_PLUS
      This error is used to indicate a problem with the 2 types and the operation.
    • CURRENCY_INTEGER_MINUS

      public static final ErrorCode CURRENCY_INTEGER_MINUS
      This error is used to indicate a problem with the 2 types and the operation.
    • CURRENCY_INTEGER_POWER

      public static final ErrorCode CURRENCY_INTEGER_POWER
      This error is used to indicate a problem with the 2 types and the operation.
    • PERCENTAGE_CURRENCY_DIVISION

      public static final ErrorCode PERCENTAGE_CURRENCY_DIVISION
      This error is used to indicate a problem with the 2 types and the operation.
    • PERCENTAGE_CURRENCY_POWER

      public static final ErrorCode PERCENTAGE_CURRENCY_POWER
      This error is used to indicate a problem with the 2 types and the operation.
    • NUMBER_CURRENCY_PLUS

      public static final ErrorCode NUMBER_CURRENCY_PLUS
      This error is used to indicate a problem with the 2 types and the operation.
    • NUMBER_CURRENCY_MINUS

      public static final ErrorCode NUMBER_CURRENCY_MINUS
      This error is used to indicate a problem with the 2 types and the operation.
    • NUMBER_CURRENCY_DIVISION

      public static final ErrorCode NUMBER_CURRENCY_DIVISION
      This error is used to indicate a problem with the 2 types and the operation.
    • NUMBER_CURRENCY_POWER

      public static final ErrorCode NUMBER_CURRENCY_POWER
      This error is used to indicate a problem with the 2 types and the operation.
    • INTEGER_CURRENCY_PLUS

      public static final ErrorCode INTEGER_CURRENCY_PLUS
      This error is used to indicate a problem with the 2 types and the operation.
    • INTEGER_CURRENCY_MINUS

      public static final ErrorCode INTEGER_CURRENCY_MINUS
      This error is used to indicate a problem with the 2 types and the operation.
    • PERCENTAGE_CURRENCY_PLUS

      public static final ErrorCode PERCENTAGE_CURRENCY_PLUS
      This error is used to indicate a problem with the 2 types and the operation.
    • PERCENTAGE_CURRENCY_MINUS

      public static final ErrorCode PERCENTAGE_CURRENCY_MINUS
      This error is used to indicate a problem with the 2 types and the operation.
    • DEPRECATED_LIST_FROM_WHERE_EXPRESSION

      public static final ErrorCode DEPRECATED_LIST_FROM_WHERE_EXPRESSION
    • DEPRECATED_EXISTS_FROM

      public static final ErrorCode DEPRECATED_EXISTS_FROM
    • DEPRECATED_EXISTS_FROM_WHERE

      public static final ErrorCode DEPRECATED_EXISTS_FROM_WHERE
    • DEPRECATED_LIST_OPERATION_FROM

      public static final ErrorCode DEPRECATED_LIST_OPERATION_FROM
    • DEPRECATED_LIST_OPERATION_FROM_WHERE

      public static final ErrorCode DEPRECATED_LIST_OPERATION_FROM_WHERE
    • DEPRECATED_LIST_OPERATION

      public static final ErrorCode DEPRECATED_LIST_OPERATION
    • DEPRECATED_LIST_OPERATION_WHERE

      public static final ErrorCode DEPRECATED_LIST_OPERATION_WHERE
    • DEPRECATED_LIST_WHERE_EXPRESSION

      public static final ErrorCode DEPRECATED_LIST_WHERE_EXPRESSION
    • DEPRECATED_LIST_FROM_EXPRESSION

      public static final ErrorCode DEPRECATED_LIST_FROM_EXPRESSION
    • DEPRECATED_DATECREATION

      public static final ErrorCode DEPRECATED_DATECREATION
    • PLUS_ON_LIST

      public static final ErrorCode PLUS_ON_LIST
    • COLLECT_EXPRESSION_MISSING_ALIAS

      public static final ErrorCode COLLECT_EXPRESSION_MISSING_ALIAS
    • EACH_EXISTS_ISACTIVE_EXPRESSION_MISSING_ALIAS

      public static final ErrorCode EACH_EXISTS_ISACTIVE_EXPRESSION_MISSING_ALIAS
    • EXISTS_ALL

      public static final ErrorCode EXISTS_ALL
    • ALL_EXPRESSION_NEEDED

      public static final ErrorCode ALL_EXPRESSION_NEEDED
    • SEMANTIC_ERROR

      public static final ErrorCode SEMANTIC_ERROR
    • UNPACK_INVALID_ARGUMENTS

      public static final ErrorCode UNPACK_INVALID_ARGUMENTS
    • DEPRECATED_FUNCTION

      public static final ErrorCode DEPRECATED_FUNCTION
    • LOCAL_VARIABLE_HIDES_INSTANCE

      public static final ErrorCode LOCAL_VARIABLE_HIDES_INSTANCE
      This error code is used to indicate a local variable hides an entity type.
    • LOCAL_VARIABLE_HIDES_VARIABLE

      public static final ErrorCode LOCAL_VARIABLE_HIDES_VARIABLE
      This error code is used to indicate a local variable hides another local variable.
    • DEPRECATED_R4ANY_EXPRESSION

      public static final ErrorCode DEPRECATED_R4ANY_EXPRESSION
    • DEPRECATED_R4OCCURS_EXPRESSION

      public static final ErrorCode DEPRECATED_R4OCCURS_EXPRESSION