Class ServiceBrokerUnavailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceBrokerUnavailableException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a service broker is able to accept requests from the platform
but is temporarily unable to process those requests.
Throwing this exception will result in an HTTP status code 503 SERVICE UNAVAILABLE being returned to the platform.
- Author:
- Scott Frederick
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceBrokerUnavailableException
(String message) Construct an exception with the provided message.ServiceBrokerUnavailableException
(String errorCode, String message) Construct an exception with the provided error code and message.ServiceBrokerUnavailableException
(String errorCode, String message, Throwable cause) Construct an exception with the provided error code, message and cause.ServiceBrokerUnavailableException
(String message, Throwable cause) Construct an exception with the provided message and cause.Construct an exception with the provided cause. -
Method Summary
Methods inherited from class org.springframework.cloud.servicebroker.exception.ServiceBrokerException
getErrorMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceBrokerUnavailableException
Construct an exception with the provided message.- Parameters:
message
- the exception message
-
ServiceBrokerUnavailableException
Construct an exception with the provided error code and message.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- the exception message
-
ServiceBrokerUnavailableException
Construct an exception with the provided message and cause.- Parameters:
message
- the exception messagecause
- the exception cause
-
ServiceBrokerUnavailableException
Construct an exception with the provided error code, message and cause.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- the exception messagecause
- the exception cause
-
ServiceBrokerUnavailableException
Construct an exception with the provided cause.- Parameters:
cause
- the exception cause
-