Package com.dnanexus.exceptions
Class ServiceUnavailableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.dnanexus.exceptions.DXAPIException
-
- com.dnanexus.exceptions.ServiceUnavailableException
-
- All Implemented Interfaces:
Serializable
public class ServiceUnavailableException extends DXAPIException
Exception used to indicate that the request yielded 503 Service Unavailable and suggested that we retry at some point in the future.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceUnavailableException(String message, int statusCode)Creates aServiceUnavailableExceptionwith the specified message and HTTP status code.ServiceUnavailableException(String message, int statusCode, int retryAfterSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSecondsToWaitForRetry()-
Methods inherited from class com.dnanexus.exceptions.DXAPIException
getInstance, getStatusCode, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ServiceUnavailableException
public ServiceUnavailableException(String message, int statusCode)
Creates aServiceUnavailableExceptionwith the specified message and HTTP status code.
-
ServiceUnavailableException
public ServiceUnavailableException(String message, int statusCode, int retryAfterSeconds)
-
-