Class SerializerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.olingo.commons.api.ex.ODataException
org.apache.olingo.server.api.ODataLibraryException
org.apache.olingo.server.api.serializer.SerializerException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BatchSerializerException
Exception thrown by the
ODataSerializer
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Keys for exception texts in the resource bundle.Nested classes/interfaces inherited from class org.apache.olingo.server.api.ODataLibraryException
ODataLibraryException.MessageKey, ODataLibraryException.ODataErrorMessage
-
Field Summary
Fields inherited from class org.apache.olingo.server.api.ODataLibraryException
DEFAULT_SERVER_BUNDLE_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionSerializerException
(String developmentMessage, Throwable cause, ODataLibraryException.MessageKey messageKey, String... parameters) Creates serializer exception.SerializerException
(String developmentMessage, ODataLibraryException.MessageKey messageKey, String... parameters) Creates serializer exception. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Gets the name of theResourceBundle
containing the exception texts.Methods inherited from class org.apache.olingo.server.api.ODataLibraryException
getLocalizedMessage, getMessageKey, getTranslatedMessage, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SerializerException
public SerializerException(String developmentMessage, ODataLibraryException.MessageKey messageKey, String... parameters) Creates serializer exception.- Parameters:
developmentMessage
- message text as fallback and for debugging purposesmessageKey
- one of theSerializerException.MessageKeys
for the exception text in the resource bundleparameters
- parameters for the exception text
-
SerializerException
public SerializerException(String developmentMessage, Throwable cause, ODataLibraryException.MessageKey messageKey, String... parameters) Creates serializer exception.- Parameters:
developmentMessage
- message text as fallback and for debugging purposescause
- the cause of this exceptionmessageKey
- one of theSerializerException.MessageKeys
for the exception text in the resource bundleparameters
- parameters for the exception text
-
-
Method Details
-
getBundleName
Description copied from class:ODataLibraryException
Gets the name of the
ResourceBundle
containing the exception texts.The key for an exception text is the concatenation of the exception-class name and the
ODataLibraryException.MessageKey
, separated by a dot.- Specified by:
getBundleName
in classODataLibraryException
- Returns:
- the name of the resource bundle
-