Class ODataJPAException
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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ODataJPAModelException,ODataJPARuntimeException
The exception class is the base of OData JPA exceptions. The class also
provides non localized error texts that can be used for raising OData JPA
exceptions with non localized error texts.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Localeprotected MessageReferencestatic final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedODataJPAException(String localizedMessage, Throwable e, MessageReference msgRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected static MessageReferencecreateMessageReference(Class<? extends ODataJPAException> clazz, String messageReferenceKey) The method creates a Reference to Message ObjectMessageReference.Methods 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
-
messageReference
-
ODATA_JPACTX_NULL
- See Also:
-
DEFAULT_LOCALE
-
-
Constructor Details
-
ODataJPAException
-
-
Method Details
-
createMessageReference
protected static MessageReference createMessageReference(Class<? extends ODataJPAException> clazz, String messageReferenceKey) The method creates a Reference to Message ObjectMessageReference. The message text key is derived out of parameters clazz.messageReferenceKey.- Parameters:
clazz- is name of the class extendingODataJPAExceptionmessageReferenceKey- is the key of the message- Returns:
- an instance of type
MessageReference
-
getMessageReference
-