-
- All Implemented Interfaces:
-
java.io.Serializable
public class Webservice.WebserviceError extends Throwable
Error thrown by Webservice on error
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumWebservice.WebserviceError.ReasonA possible reason of error
-
Field Summary
Fields Modifier and Type Field Description private Webservice.WebserviceError.Reasonreasonprivate intretryAfter
-
Method Summary
Modifier and Type Method Description Webservice.WebserviceError.ReasongetReason()Return the reason of the error voidsetRetryAfter(int retryAfter)Set the time (in seconds) to wait before sending another request intgetRetryAfterInMillis()Get the time to wait before sending another request -
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getReason
Webservice.WebserviceError.Reason getReason()
Return the reason of the error
-
setRetryAfter
void setRetryAfter(int retryAfter)
Set the time (in seconds) to wait before sending another request
-
getRetryAfterInMillis
int getRetryAfterInMillis()
Get the time to wait before sending another request
-
-
-
-