public class ODataApplicationException extends ODataException
ODataException, 
Serialized Form| Constructor 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()Returns the Locale which was used for the error message. | 
| String | getODataErrorCode()This method will return the error code specified by the application. | 
| int | getStatusCode()Will return the status code which will be used as a status code for the HTTP response. | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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, 
HttpStatusCodepublic 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, 
HttpStatusCodepublic 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()public int getStatusCode()
public Locale getLocale()
public String getODataErrorCode()
Copyright © 2013–2023 The Apache Software Foundation. All rights reserved.