Class FilterParserExceptionImpl
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.olingo.odata2.api.exception.ODataException
org.apache.olingo.odata2.api.exception.ODataMessageException
org.apache.olingo.odata2.api.exception.ODataHttpException
org.apache.olingo.odata2.api.exception.ODataBadRequestException
org.apache.olingo.odata2.api.uri.expression.ExpressionParserException
org.apache.olingo.odata2.core.uri.expression.FilterParserExceptionImpl
- All Implemented Interfaces:
Serializable
This class is used to create exceptions of type FilterParserException.
Because this class lies inside org.apache.olingo.odata2.core it is possible to define better/more detailed
input parameters for inserting into the exception text.
The exception
The exception
ExpressionParserException does not know the org.apache.olingo.odata2.core content- See Also:
-
Field Summary
Fields inherited from class org.apache.olingo.odata2.api.uri.expression.ExpressionParserException
COMMA_OR_CLOSING_PARENTHESIS_EXPECTED_AFTER_POS, COMMA_OR_END_EXPECTED_AT_POS, COMMON_ERROR, ERROR_IN_TOKENIZER, EXPRESSION_EXPECTED_AFTER_POS, EXPRESSION_EXPECTED_AT_POS, INVALID_METHOD_CALL, INVALID_MULTIPLICITY, INVALID_SORT_ORDER, INVALID_TRAILING_TOKEN_DETECTED_AFTER_PARSING, INVALID_TYPES_FOR_BINARY_OPERATOR, LEFT_SIDE_NOT_A_PROPERTY, LEFT_SIDE_NOT_STRUCTURAL_TYPE, METHOD_WRONG_ARG_BETWEEN, METHOD_WRONG_ARG_EXACT, METHOD_WRONG_ARG_X_OR_LESS, METHOD_WRONG_ARG_X_OR_MORE, METHOD_WRONG_INPUT_TYPE, MISSING_CLOSING_PARENTHESIS, PROPERTY_NAME_NOT_FOUND_IN_TYPE, TOKEN_UNDETERMINATED_STRING, TYPE_EXPECTED_ATFields inherited from class org.apache.olingo.odata2.api.exception.ODataBadRequestException
AMBIGUOUS_XMETHOD, BODY, COMMON, INVALID_HEADER, INVALID_REQUEST, INVALID_SYNTAX, NOTSUPPORTED, PARSEVERSIONERROR, URLTOOSHORT, VERSIONERRORFields inherited from class org.apache.olingo.odata2.api.exception.ODataHttpException
httpStatusFields inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException
errorCode, messageReference -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionParserExceptioncreateCOMMA_OR_CLOSING_PARENTHESIS_EXPECTED_AFTER_POS(Token token, String expression) static ExpressionParserExceptioncreateCOMMA_OR_END_EXPECTED_AT_POS(Token token, String expression) static ExpressionParserExceptioncreateERROR_IN_TOKENIZER(TokenizerException exceptionTokenizer, String expression) static ExpressionParserExceptioncreateEXPRESSION_EXPECTED_AFTER_POS(int position, String expression) static ExpressionParserExceptioncreateEXPRESSION_EXPECTED_AFTER_POS(Token token, String expression) static ExpressionParserExceptioncreateEXPRESSION_EXPECTED_AT_POS(Token token, String expression) static ExpressionParserExceptioncreateINVALID_METHOD_CALL(CommonExpression leftNode, Token prevToken, String expression) static ExpressionParserExceptioncreateINVALID_SORT_ORDER(Token token, String expression) static ExpressionParserExceptioncreateINVALID_TRAILING_TOKEN_DETECTED_AFTER_PARSING(Token token, String expression) static ExpressionParserExceptioncreateINVALID_TYPES_FOR_BINARY_OPERATOR(BinaryOperator op, EdmType left, EdmType right, Token token, String expression) static ExpressionParserExceptioncreateLEFT_SIDE_NOT_A_PROPERTY(Token token, String expression) static ExpressionParserExceptioncreateLEFT_SIDE_NOT_STRUCTURAL_TYPE(EdmType parentType, PropertyExpressionImpl property, Token token, String expression) static ExpressionParserExceptioncreateMETHOD_WRONG_ARG_COUNT(MethodExpressionImpl methodExpression, Token token, String expression) static ExpressionParserExceptioncreateMETHOD_WRONG_INPUT_TYPE(MethodExpressionImpl methodExpression, Token token, String expression) static ExpressionParserExceptioncreateMISSING_CLOSING_PARENTHESIS(int position, String expression, TokenizerExpectError e) static ExpressionParserExceptioncreatePROPERTY_NAME_NOT_FOUND_IN_TYPE(EdmStructuralType parentType, PropertyExpression property, Token token, String expression) static ExpressionParserExceptioncreateTOKEN_UNDETERMINATED_STRING(int position, String expression) static ExpressionParserExceptioncreateTYPE_EXPECTED_AT(EdmType expectedType, EdmType actualType, int position, String expression) Methods inherited from class org.apache.olingo.odata2.api.uri.expression.ExpressionParserException
getFilterTree, setFilterTreeMethods inherited from class org.apache.olingo.odata2.api.exception.ODataHttpException
getHttpStatusMethods inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException
createMessageReference, getErrorCode, getMessage, getMessageReferenceMethods inherited from class org.apache.olingo.odata2.api.exception.ODataException
getApplicationExceptionCause, getHttpExceptionCause, getMessageExceptionCause, isCausedByApplicationException, isCausedByHttpException, isCausedByMessageExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FilterParserExceptionImpl
public FilterParserExceptionImpl()
-
-
Method Details
-
createERROR_IN_TOKENIZER
public static ExpressionParserException createERROR_IN_TOKENIZER(TokenizerException exceptionTokenizer, String expression) -
createINVALID_TRAILING_TOKEN_DETECTED_AFTER_PARSING
public static ExpressionParserException createINVALID_TRAILING_TOKEN_DETECTED_AFTER_PARSING(Token token, String expression) -
createEXPRESSION_EXPECTED_AFTER_POS
public static ExpressionParserException createEXPRESSION_EXPECTED_AFTER_POS(Token token, String expression) -
createEXPRESSION_EXPECTED_AFTER_POS
public static ExpressionParserException createEXPRESSION_EXPECTED_AFTER_POS(int position, String expression) -
createCOMMA_OR_END_EXPECTED_AT_POS
public static ExpressionParserException createCOMMA_OR_END_EXPECTED_AT_POS(Token token, String expression) -
createEXPRESSION_EXPECTED_AT_POS
public static ExpressionParserException createEXPRESSION_EXPECTED_AT_POS(Token token, String expression) -
createCOMMA_OR_CLOSING_PARENTHESIS_EXPECTED_AFTER_POS
public static ExpressionParserException createCOMMA_OR_CLOSING_PARENTHESIS_EXPECTED_AFTER_POS(Token token, String expression) -
createMETHOD_WRONG_ARG_COUNT
public static ExpressionParserException createMETHOD_WRONG_ARG_COUNT(MethodExpressionImpl methodExpression, Token token, String expression) -
createMETHOD_WRONG_INPUT_TYPE
public static ExpressionParserException createMETHOD_WRONG_INPUT_TYPE(MethodExpressionImpl methodExpression, Token token, String expression) -
createLEFT_SIDE_NOT_A_PROPERTY
public static ExpressionParserException createLEFT_SIDE_NOT_A_PROPERTY(Token token, String expression) throws ExpressionParserInternalError - Throws:
ExpressionParserInternalError
-
createLEFT_SIDE_NOT_STRUCTURAL_TYPE
public static ExpressionParserException createLEFT_SIDE_NOT_STRUCTURAL_TYPE(EdmType parentType, PropertyExpressionImpl property, Token token, String expression) throws ExpressionParserInternalError - Throws:
ExpressionParserInternalError
-
createPROPERTY_NAME_NOT_FOUND_IN_TYPE
public static ExpressionParserException createPROPERTY_NAME_NOT_FOUND_IN_TYPE(EdmStructuralType parentType, PropertyExpression property, Token token, String expression) throws ExpressionParserInternalError - Throws:
ExpressionParserInternalError
-
createTOKEN_UNDETERMINATED_STRING
public static ExpressionParserException createTOKEN_UNDETERMINATED_STRING(int position, String expression) -
createINVALID_TYPES_FOR_BINARY_OPERATOR
public static ExpressionParserException createINVALID_TYPES_FOR_BINARY_OPERATOR(BinaryOperator op, EdmType left, EdmType right, Token token, String expression) -
createMISSING_CLOSING_PARENTHESIS
public static ExpressionParserException createMISSING_CLOSING_PARENTHESIS(int position, String expression, TokenizerExpectError e) -
createINVALID_SORT_ORDER
-
createINVALID_METHOD_CALL
public static ExpressionParserException createINVALID_METHOD_CALL(CommonExpression leftNode, Token prevToken, String expression) -
createTYPE_EXPECTED_AT
public static ExpressionParserException createTYPE_EXPECTED_AT(EdmType expectedType, EdmType actualType, int position, String expression)
-