|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.degreedays.api.DegreeDaysApiException
net.degreedays.api.FailureException
net.degreedays.api.RequestFailureException
public abstract class RequestFailureException
Superclass of exceptions that indicate that the API's processing of a request
resulted in a Failure
.
The key point here is that the API servers were not able to process the request at all, and their response contained only:
Failure
object itself (accessible via
FailureException.failure()
).responseMetadata()
method
of this exception.
This abstract class is not designed to be extended by third-party code, which is why it does not have an accessible constructor.
Method Summary | |
---|---|
ResponseMetadata |
responseMetadata()
Returns the non-null metadata from the FailureResponse that
brought details of this failure back from the API servers. |
Methods inherited from class net.degreedays.api.FailureException |
---|
failure, getMessage |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ResponseMetadata responseMetadata()
FailureResponse
that
brought details of this failure back from the API servers.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |