|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.olingo.odata2.api.exception.ODataException
org.apache.olingo.odata2.api.exception.ODataApplicationException
public class ODataApplicationException
This class represents a translated application exception. Use this exception class to display custom exception
messages.
If a HTTP status is given this exception will result in the set status code like an HTTP exception.
A set status code can be used to show a substatus to a HTTP status as described in the OData protocol
specification.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
String |
getCode()
Default code is null |
HttpStatusCodes |
getHttpStatus()
Default HttpStatusCodes.INTERNAL_SERVER_ERROR |
Locale |
getLocale()
|
Methods inherited from class org.apache.olingo.odata2.api.exception.ODataException |
---|
getApplicationExceptionCause, getHttpExceptionCause, getMessageExceptionCause, isCausedByApplicationException, isCausedByHttpException, isCausedByMessageException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
- Method Detail |
---|
public Locale getLocale()
Locale
the localepublic HttpStatusCodes getHttpStatus()
HttpStatusCodes
the status codepublic String getCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |