Package org.apache.olingo.odata2.api.ep
Class EntityProviderException
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.ep.EntityProviderException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EntityProviderProducerException
An
EntityProviderException is the base exception for all EntityProvider related exceptions.
It extends the ODataMessageException and provides several MessageReference for specification of
the thrown exception.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageReferenceINVALID_STATE requires no content valuestatic final MessageReferenceDOUBLE_PROPERTY requires 1 content value ('double tag/property')static final MessageReferenceEND_DOCUMENT_EXPECTED requires 1 content value ('actual token')static final MessageReferenceEXCEPTION_OCCURRED requires 1 content value ('exception name')static final MessageReferencestatic final MessageReferenceILLEGAL_ARGUMENT requires 1 content value ('message')static final MessageReferenceNavigation Property has incorrect typestatic final MessageReferencestatic final MessageReferenceINVALID_ATTRIBUTE found ('invalid attribute name')static final MessageReferenceINVALID_COMPLEX_TYPE requires 2 content values ('supplied complex type' and 'content complex type')static final MessageReferenceINVALID_CONTENT requires 2 content values ('invalid tag' and 'parent tag')static final MessageReferencestatic final MessageReferenceINVALID_ENTITYTYPE requires 2 content values ('supplied entity type' and 'content entity type')static final MessageReferenceINVALID_INLINE_CONTENT requires 1 content value ('invalid inline message')static final MessageReferenceINVALIDMAPPING requires 1 content value ('propertyName')static final MessageReferenceINVALID_NAMESPACE requires 1 content value ('invalid tag/namespace')static final MessageReferenceINVALID_PARENT_TAG requires 2 content values ('expected parent tag' and 'found parent tag')static final MessageReferenceINVALID_PROPERTY requires 1 content value ('invalid property name')static final MessageReferenceINVALID_PROPERTY_VALUE requires 1 content value ('invalid value')static final MessageReferenceINVALID_STATE requires 1 content value ('message')static final MessageReferenceThe request is malformed and cannot be parsedstatic final MessageReferenceMANDATORY_WRITE_PROPERTY requires no content valuestatic final MessageReferenceMEDIA_DATA_NOT_INITIAL requires no content valuestatic final MessageReferenceINVALID_PARENT_TAG requires 2 content values ('missing attribute name' and 'tag name')static final MessageReferenceMISSING_PROPERTY requires 1 content value ('invalid value')static final MessageReferenceMISSING_RESULTS_ARRAY requires no content valuestatic final MessageReferenceMISSING_TAG requires 1 content values ('tag name')static final MessageReferenceNOT_SET_CHARACTER_ENCODING requires no content valuestatic final MessageReferencePROPERTY requires valuestatic final MessageReferenceUNSUPPORTED_CHARACTER_ENCODING requires 1 content value ('found but unsupported character encoding')static final MessageReferenceUNSUPPORTED_PROPERTY_TYPE requires 1 content values ('property type')Fields inherited from class org.apache.olingo.odata2.api.exception.ODataMessageException
errorCode, messageReference -
Constructor Summary
ConstructorsConstructorDescriptionEntityProviderException(MessageReference messageReference) EntityProviderException(MessageReference messageReference, String errorCode) EntityProviderException(MessageReference messageReference, Throwable cause) EntityProviderException(MessageReference messageReference, Throwable cause, String errorCode) -
Method Summary
Methods 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
-
COMMON
INVALID_STATE requires no content value -
EXCEPTION_OCCURRED
EXCEPTION_OCCURRED requires 1 content value ('exception name') -
INVALID_MAPPING
INVALIDMAPPING requires 1 content value ('propertyName') -
INVALID_ENTITYTYPE
INVALID_ENTITYTYPE requires 2 content values ('supplied entity type' and 'content entity type') -
INVALID_COMPLEX_TYPE
INVALID_COMPLEX_TYPE requires 2 content values ('supplied complex type' and 'content complex type') -
INVALID_CONTENT
INVALID_CONTENT requires 2 content values ('invalid tag' and 'parent tag') -
INVALID_PROPERTY_VALUE
INVALID_PROPERTY_VALUE requires 1 content value ('invalid value') -
MISSING_PROPERTY
MISSING_PROPERTY requires 1 content value ('invalid value') -
MISSING_ATTRIBUTE
INVALID_PARENT_TAG requires 2 content values ('missing attribute name' and 'tag name') -
MISSING_TAG
MISSING_TAG requires 1 content values ('tag name') -
UNSUPPORTED_PROPERTY_TYPE
UNSUPPORTED_PROPERTY_TYPE requires 1 content values ('property type') -
INLINECOUNT_INVALID
-
INVALID_STATE
INVALID_STATE requires 1 content value ('message') -
INVALID_INLINE_CONTENT
INVALID_INLINE_CONTENT requires 1 content value ('invalid inline message') -
INVALID_PROPERTY
INVALID_PROPERTY requires 1 content value ('invalid property name') -
ILLEGAL_ARGUMENT
ILLEGAL_ARGUMENT requires 1 content value ('message') -
INVALID_NAMESPACE
INVALID_NAMESPACE requires 1 content value ('invalid tag/namespace') -
INVALID_PARENT_TAG
INVALID_PARENT_TAG requires 2 content values ('expected parent tag' and 'found parent tag') -
EXPANDNOTSUPPORTED
-
DOUBLE_PROPERTY
DOUBLE_PROPERTY requires 1 content value ('double tag/property') -
NOT_SET_CHARACTER_ENCODING
NOT_SET_CHARACTER_ENCODING requires no content value -
UNSUPPORTED_CHARACTER_ENCODING
UNSUPPORTED_CHARACTER_ENCODING requires 1 content value ('found but unsupported character encoding') -
MEDIA_DATA_NOT_INITIAL
MEDIA_DATA_NOT_INITIAL requires no content value -
END_DOCUMENT_EXPECTED
END_DOCUMENT_EXPECTED requires 1 content value ('actual token') -
MISSING_RESULTS_ARRAY
MISSING_RESULTS_ARRAY requires no content value -
MANDATORY_WRITE_PROPERTY
MANDATORY_WRITE_PROPERTY requires no content value -
NULL_VALUE
PROPERTY requires value -
INCORRECT_NAVIGATION_TYPE
Navigation Property has incorrect type -
INVALID_DELETED_ENTRY_METADATA
-
INVALID_ATTRIBUTE
INVALID_ATTRIBUTE found ('invalid attribute name') -
MALFORMED_JSON
The request is malformed and cannot be parsed
-
-
Constructor Details
-
EntityProviderException
-
EntityProviderException
-
EntityProviderException
-
EntityProviderException
public EntityProviderException(MessageReference messageReference, Throwable cause, String errorCode)
-