public class ODataApplicationException extends ODataException
Constructor and Description |
---|
ODataApplicationException(String message,
Locale locale)
Since this is a translated application exception locale must not be null.
|
ODataApplicationException(String message,
Locale locale,
HttpStatusCodes status)
Since this is a translated application exception locale must not be null.
|
ODataApplicationException(String message,
Locale locale,
HttpStatusCodes status,
String errorCode)
Since this is a translated application exception locale must not be null.
|
ODataApplicationException(String message,
Locale locale,
HttpStatusCodes status,
String errorCode,
Throwable e)
Since this is a translated application exception locale must not be null.
|
ODataApplicationException(String message,
Locale locale,
HttpStatusCodes status,
Throwable e)
Since this is a translated application exception locale must not be null.
|
ODataApplicationException(String message,
Locale locale,
String errorCode,
Throwable e)
Since this is a translated application exception locale must not be null.
|
ODataApplicationException(String message,
Locale locale,
Throwable e)
Since this is a translated application exception locale must not be null.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Default code is null
|
HttpStatusCodes |
getHttpStatus()
Default HttpStatusCodes.INTERNAL_SERVER_ERROR
|
Locale |
getLocale() |
getApplicationExceptionCause, getHttpExceptionCause, getMessageExceptionCause, isCausedByApplicationException, isCausedByHttpException, isCausedByMessageException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ODataApplicationException(String message, Locale locale)
message
- locale
- public ODataApplicationException(String message, Locale locale, HttpStatusCodes status)
message
- locale
- status
- public ODataApplicationException(String message, Locale locale, HttpStatusCodes status, String errorCode)
message
- locale
- status
- errorCode
- public ODataApplicationException(String message, Locale locale, HttpStatusCodes status, String errorCode, Throwable e)
message
- locale
- status
- errorCode
- e
- public ODataApplicationException(String message, Locale locale, Throwable e)
message
- locale
- e
- public ODataApplicationException(String message, Locale locale, HttpStatusCodes status, Throwable e)
message
- locale
- status
- e
- public ODataApplicationException(String message, Locale locale, String errorCode, Throwable e)
message
- locale
- errorCode
- e
- public HttpStatusCodes getHttpStatus()
HttpStatusCodes
the status codepublic String getCode()
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.