Class TokenizerExpectError
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.core.uri.expression.TokenizerExpectError
- All Implemented Interfaces:
Serializable
This exception is thrown if a token should be read
from the top of the
This exception in not in the public API, but may be added as cause for the
TokenList which does not match an
expected token. The cause for using this exception MUST indicate an internal error
in the Tokenizer or inside the FilterParserImpl.
This exception in not in the public API, but may be added as cause for the
ExpressionParserInternalError exception.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final intFields inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException
COMMON, errorCode, messageReference -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenizerExpectErrorcreateINVALID_TOKEN_AT(String expectedToken, Token actualToken) static TokenizerExpectErrorcreateINVALID_TOKENKIND_AT(TokenKind expectedTokenKind, Token actualToken) static TokenizerExpectErrorcreateNO_TOKEN_AVAILABLE(String expectedToken) intgetToken()voidsetPosition(int position) voidsetPrevious(Exception previous) voidMethods 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
-
Field Details
-
parseStringpoken
public static final int parseStringpoken- See Also:
-
NO_TOKEN_AVAILABLE
-
INVALID_TOKEN_AT
-
INVALID_TOKENKIND_AT
-
-
Constructor Details
-
TokenizerExpectError
-
-
Method Details
-
getToken
-
setToken
-
getPrevious
-
setPrevious
-
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
createINVALID_TOKEN_AT
-
createINVALID_TOKENKIND_AT
public static TokenizerExpectError createINVALID_TOKENKIND_AT(TokenKind expectedTokenKind, Token actualToken) -
createNO_TOKEN_AVAILABLE
-