Class 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 Detail

      • ServiceUnavailableException

        public ServiceUnavailableException​(String message,
                                           int statusCode)
        Creates a ServiceUnavailableException with the specified message and HTTP status code.
      • ServiceUnavailableException

        public ServiceUnavailableException​(String message,
                                           int statusCode,
                                           int retryAfterSeconds)
    • Method Detail

      • getSecondsToWaitForRetry

        public int getSecondsToWaitForRetry()