public class SerializerException extends ODataTranslatedException
ODataSerializer
.Modifier and Type | Class and Description |
---|---|
static class |
SerializerException.MessageKeys
Keys for exception texts in the resource bundle.
|
ODataTranslatedException.MessageKey, ODataTranslatedException.ODataErrorMessage
DEFAULT_SERVER_BUNDLE_NAME
Constructor and Description |
---|
SerializerException(String developmentMessage,
ODataTranslatedException.MessageKey messageKey,
String... parameters)
Creates serializer exception.
|
SerializerException(String developmentMessage,
Throwable cause,
ODataTranslatedException.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, ODataTranslatedException.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, ODataTranslatedException.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()
ODataTranslatedException
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 ODataTranslatedException.MessageKey
, separated by a dot.
getBundleName
in class ODataTranslatedException
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.