|
||||||||||
| 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
public class ODataException
Base exception for all OData-related exceptions.
| Constructor Summary | |
|---|---|
ODataException()
|
|
ODataException(String msg)
|
|
ODataException(String msg,
Throwable e)
|
|
ODataException(Throwable e)
|
|
| Method Summary | |
|---|---|
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. |
| 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 ODataException()
public ODataException(String msg)
public ODataException(String msg,
Throwable e)
public ODataException(Throwable e)
| Method Detail |
|---|
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 hierarchy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||