Class ODataJPAModelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.olingo.odata2.api.exception.ODataException
org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPAException
org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPAModelException
- All Implemented Interfaces:
Serializable
The exception is thrown for any unexpected errors raising while
accessing/transforming Java Persistence Models.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferencestatic final MessageReferenceFields inherited from class org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPAException
DEFAULT_LOCALE, messageReference, ODATA_JPACTX_NULL -
Method Summary
Modifier and TypeMethodDescriptionstatic ODataJPAModelExceptionthrowException(MessageReference messageReference, Throwable e) The method creates an exception object of type ODataJPAModelException with localized error texts.Methods inherited from class org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPAException
createMessageReference, 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, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_ENTITY_TYPE
-
INVALID_COMPLEX_TYPE
-
INVALID_ASSOCIATION
-
INVALID_ENTITYSET
-
INVALID_ENTITYCONTAINER
-
INVALID_ASSOCIATION_SET
-
INVALID_FUNC_IMPORT
-
BUILDER_NULL
-
TYPE_NOT_SUPPORTED
-
FUNC_ENTITYSET_EXP
-
FUNC_RETURN_TYPE_EXP
-
FUNC_RETURN_TYPE_ENTITY_NOT_FOUND
-
GENERAL
-
INNER_EXCEPTION
-
FUNC_PARAM_NAME_EXP
-
REF_ATTRIBUTE_NOT_FOUND
-
-
Method Details
-
throwException
The method creates an exception object of type ODataJPAModelException with localized error texts.- Parameters:
messageReference- is a mandatory parameter referring to a literal that could be translated to localized error texts.e- is an optional parameter representing the previous exception in the call stack- Returns:
- an instance of ODataJPAModelException which can be then raised.
-