public class ODataApplicationException extends ODataException
ODataException
,
Serialized FormConstructor and Description |
---|
ODataApplicationException(String msg,
int statusCode,
Locale locale)
Exception in an OData service implementation.
|
ODataApplicationException(String msg,
int statusCode,
Locale locale,
String oDataErrorCode)
Exception in an OData service implementation.
|
ODataApplicationException(String msg,
int statusCode,
Locale locale,
Throwable cause)
Exception in an OData service implementation.
|
ODataApplicationException(String msg,
int statusCode,
Locale locale,
Throwable cause,
String oDataErrorCode)
Exception in an OData service implementation.
|
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale() |
String |
getODataErrorCode() |
int |
getStatusCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ODataApplicationException(String msg, int statusCode, Locale locale)
msg
- the text of the exceptionstatusCode
- the HTTP status code of the error response; the default is 500 - Internal Server Errorlocale
- a Locale
to enable translation of error messagesODataException
,
HttpStatusCode
public ODataApplicationException(String msg, int statusCode, Locale locale, String oDataErrorCode)
msg
- the text of the exceptionstatusCode
- the HTTP status code of the error response; the default is 500 - Internal Server Errorlocale
- a Locale
to enable translation of error messagesoDataErrorCode
- the error code of the exception as defined by the OData standardODataException
,
HttpStatusCode
public ODataApplicationException(String msg, int statusCode, Locale locale, Throwable cause)
msg
- the text of the exceptionstatusCode
- the HTTP status code of the error response; the default is 500 - Internal Server Errorlocale
- a Locale
to enable translation of error messagescause
- the cause of this exceptionODataException
,
HttpStatusCode
,
Throwable.getCause()
public ODataApplicationException(String msg, int statusCode, Locale locale, Throwable cause, String oDataErrorCode)
msg
- the text of the exceptionstatusCode
- the HTTP status code of the error response; the default is 500 - Internal Server Errorlocale
- a Locale
to enable translation of error messagescause
- the cause of this exceptionoDataErrorCode
- the error code of the exception as defined by the OData standardODataException
,
HttpStatusCode
,
Throwable.getCause()
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.