public class ODataException extends Exception
OData-related exceptions.| Constructor and Description |
|---|
ODataException() |
ODataException(String msg) |
ODataException(String msg,
Throwable e) |
ODataException(Throwable e) |
| Modifier and Type | Method and Description |
|---|---|
ODataApplicationException |
getApplicationExceptionCause()
Search for and return first (from top)
ODataApplicationException in the cause hierarchy. |
ODataHttpException |
getHttpExceptionCause()
Search for and return first (from top)
ODataHttpException in the cause hierarchy. |
ODataMessageException |
getMessageExceptionCause()
Search for and return first (from top)
ODataMessageException in the cause hierarchy. |
boolean |
isCausedByApplicationException()
Checks whether this exception is an or was caused by an
ODataApplicationException exception. |
boolean |
isCausedByHttpException()
Checks whether this exception is an or was caused by an
ODataHttpException exception. |
boolean |
isCausedByMessageException()
Checks whether this exception is an or was caused by an
ODataMessageException exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ODataException()
public ODataException(String msg)
public ODataException(Throwable e)
public boolean isCausedByHttpException()
ODataHttpException exception.true if this is an or was caused by an ODataHttpException, otherwise
falsepublic ODataHttpException getHttpExceptionCause()
ODataHttpException in the cause hierarchy.
If there is no ODataHttpException in the cause hierarchy, NULL is returned.ODataHttpException in the cause exception hierarchy
or NULL if no ODataHttpException is found in the cause hierarchypublic boolean isCausedByApplicationException()
ODataApplicationException exception.true if this is an or was caused by an ODataApplicationException, otherwise
falsepublic boolean isCausedByMessageException()
ODataMessageException exception.true if this is an or was caused by an ODataMessageException, otherwise
falsepublic ODataMessageException getMessageExceptionCause()
ODataMessageException in the cause hierarchy.
If there is no ODataMessageException in the cause hierarchy NULL is returned.ODataMessageException in the cause exception hierarchy
or NULL if no ODataMessageException is found in the cause hierarchypublic ODataApplicationException getApplicationExceptionCause()
ODataApplicationException in the cause hierarchy.
If there is no ODataApplicationException in the cause hierarchy NULL is returned.ODataApplicationException in the cause exception hierarchy
or NULL if no ODataApplicationException is found in the cause hierarchyCopyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.