public class SerializerException extends ODataLibraryException
ODataSerializer
.Modifier and Type | Class and Description |
---|---|
static class |
SerializerException.MessageKeys
Keys for exception texts in the resource bundle.
|
ODataLibraryException.MessageKey, ODataLibraryException.ODataErrorMessage
DEFAULT_SERVER_BUNDLE_NAME
Constructor and Description |
---|
SerializerException(String developmentMessage,
ODataLibraryException.MessageKey messageKey,
String... parameters)
Creates serializer exception.
|
SerializerException(String developmentMessage,
Throwable cause,
ODataLibraryException.MessageKey messageKey,
String... parameters)
Creates serializer exception.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getBundleName()
Gets the name of the
ResourceBundle containing the exception texts. |
getLocalizedMessage, getMessageKey, getTranslatedMessage, toString
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public SerializerException(String developmentMessage, ODataLibraryException.MessageKey messageKey, String... parameters)
developmentMessage
- message text as fallback and for debugging purposesmessageKey
- one of the SerializerException.MessageKeys
for the exception text in the resource bundleparameters
- parameters for the exception textpublic SerializerException(String developmentMessage, Throwable cause, ODataLibraryException.MessageKey messageKey, String... parameters)
developmentMessage
- message text as fallback and for debugging purposescause
- the cause of this exceptionmessageKey
- one of the SerializerException.MessageKeys
for the exception text in the resource bundleparameters
- parameters for the exception textprotected String getBundleName()
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.
getBundleName
in class ODataLibraryException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.