public class DeserializerException extends ODataLibraryException
Modifier and Type | Class and Description |
---|---|
static class |
DeserializerException.MessageKeys
Keys for exception texts in the resource bundle.
|
ODataLibraryException.MessageKey, ODataLibraryException.ODataErrorMessage
DEFAULT_SERVER_BUNDLE_NAME
Constructor and Description |
---|
DeserializerException(String developmentMessage,
ODataLibraryException.MessageKey messageKey,
String... parameters)
Creates deserializer exception.
|
DeserializerException(String developmentMessage,
Throwable cause,
ODataLibraryException.MessageKey messageKey,
String... parameters)
Creates deserializer 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 DeserializerException(String developmentMessage, ODataLibraryException.MessageKey messageKey, String... parameters)
developmentMessage
- message text as fallback and for debugging purposesmessageKey
- one of the DeserializerException.MessageKeys
for the exception text in the resource bundleparameters
- parameters for the exception textpublic DeserializerException(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 DeserializerException.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.