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, toString
public 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
false
public 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
false
public boolean isCausedByMessageException()
ODataMessageException
exception.true
if this is an or was caused by an ODataMessageException
, otherwise
false
public 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-2017 The Apache Software Foundation. All Rights Reserved.