-
- All Implemented Interfaces:
-
java.io.Serializable
public final class BackendException extends Exception
Raised when a backend service request has failed.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerstatusCodeprivate final Stringresponseprivate final IntegerretryAfterSecondsprivate final Throwablecauseprivate final Stringmessage
-
Constructor Summary
Constructors Constructor Description BackendException(Integer statusCode, String response, Integer retryAfterSeconds)
-
Method Summary
Modifier and Type Method Description final IntegergetStatusCode()The status code of the response. final StringgetResponse()The response, if one exists. final IntegergetRetryAfterSeconds()Optional Integer value maybe returned from the backend. ThrowablegetCause()StringgetMessage()-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getStatusCode
final Integer getStatusCode()
The status code of the response.
-
getResponse
final String getResponse()
The response, if one exists.
-
getRetryAfterSeconds
final Integer getRetryAfterSeconds()
Optional Integer value maybe returned from the backend. The module handing this should delay any future requests by this time.
-
getMessage
String getMessage()
-
-
-
-