- All Implemented Interfaces:
Serializable
A HTTP exception that indicates that the requested resource is Service Unavailable (503)
.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a service unavailable exception.ServiceUnavailableException
(long retryAfter) Creates a service unavailable exception with the specified interval in seconds after which the failed request may be retried.ServiceUnavailableException
(long retryAfter, String message) Creates a service unavailable exception with the specified interval in seconds after which the failed request may be retried and message.ServiceUnavailableException
(long retryAfter, String message, Throwable cause) Creates a service unavailable exception with the specified interval in seconds after which the failed request may be retried, message and cause.ServiceUnavailableException
(long retryAfter, Throwable cause) Creates a service unavailable exception with the specified interval in seconds after which the failed request may be retried and cause.ServiceUnavailableException
(String message) Creates a service unavailable exception with the specified message.ServiceUnavailableException
(String message, Throwable cause) Creates a service unavailable exception with the specified message and cause.Creates a service unavailable exception with the specified cause.ServiceUnavailableException
(ZonedDateTime retryAfter) Creates a service unavailable exception with the specified date time after which the failed request may be retried.ServiceUnavailableException
(ZonedDateTime retryAfter, String message) Creates a service unavailable exception with the specified date time after which the failed request may be retried and message.ServiceUnavailableException
(ZonedDateTime retryAfter, String message, Throwable cause) Creates a service unavailable exception with the specified date time after which the failed request may be retried, message and cause.ServiceUnavailableException
(ZonedDateTime retryAfter, Throwable cause) Creates a service unavailable exception with the specified date time after which the failed request may be retried and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the datetime after which the failed request may be retried.Methods inherited from class io.inverno.mod.http.base.HttpException
getStatus, getStatusCategory, getStatusCode, getStatusReasonPhrase, wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceUnavailableException
public ServiceUnavailableException()Creates a service unavailable exception.
-
ServiceUnavailableException
Creates a service unavailable exception with the specified message.
- Parameters:
message
- a message
-
ServiceUnavailableException
Creates a service unavailable exception with the specified cause.
- Parameters:
cause
- a cause
-
ServiceUnavailableException
Creates a service unavailable exception with the specified message and cause.
- Parameters:
message
- a messagecause
- a cause
-
ServiceUnavailableException
public ServiceUnavailableException(long retryAfter) Creates a service unavailable exception with the specified interval in seconds after which the failed request may be retried.
- Parameters:
retryAfter
- interval in seconds after which the failed request may be retried
-
ServiceUnavailableException
Creates a service unavailable exception with the specified interval in seconds after which the failed request may be retried and message.
- Parameters:
retryAfter
- interval in seconds after which the failed request may be retriedmessage
- a message
-
ServiceUnavailableException
Creates a service unavailable exception with the specified interval in seconds after which the failed request may be retried and cause.
- Parameters:
retryAfter
- interval in seconds after which the failed request may be retriedcause
- a cause
-
ServiceUnavailableException
Creates a service unavailable exception with the specified interval in seconds after which the failed request may be retried, message and cause.
- Parameters:
retryAfter
- interval in seconds after which the failed request may be retriedmessage
- a messagecause
- a cause
-
ServiceUnavailableException
Creates a service unavailable exception with the specified date time after which the failed request may be retried.
- Parameters:
retryAfter
- a date time after which the failed request may be retried
-
ServiceUnavailableException
Creates a service unavailable exception with the specified date time after which the failed request may be retried and message.
- Parameters:
retryAfter
- a date time after which the failed request may be retriedmessage
- a message
-
ServiceUnavailableException
Creates a service unavailable exception with the specified date time after which the failed request may be retried and cause.
- Parameters:
retryAfter
- a date time after which the failed request may be retriedcause
- a cause
-
ServiceUnavailableException
Creates a service unavailable exception with the specified date time after which the failed request may be retried, message and cause.
- Parameters:
retryAfter
- a date time after which the failed request may be retriedmessage
- a messagecause
- a cause
-
-
Method Details
-
getRetryAfter
Returns the datetime after which the failed request may be retried.
- Returns:
- a zoned datetime
-