Class ServiceInstanceBindingDoesNotExistException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceInstanceBindingDoesNotExistException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a request includes a service binding ID that is not known to
the service broker.
Throwing this exception will result in different HTTP status codes being returned to the platform, depending on the condition. The default HTTP status code is 422 UNPROCESSABLE ENTITY. If this exception is thrown when retrieving a service instance binding, an HTTP status 404 NOT FOUND is returned. If this exception is thrown when deleting a service instance binding, an HTTP status 410 GONE is returned.
- Author:
- Roy Clarkson
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct an exception with a default message that includes the provided service binding ID.ServiceInstanceBindingDoesNotExistException
(String errorCode, String bindingId) Construct an exception with a default message that includes the provided IDs. -
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
-
ServiceInstanceBindingDoesNotExistException
Construct an exception with a default message that includes the provided service binding ID.- Parameters:
bindingId
- the ID of the service binding
-
ServiceInstanceBindingDoesNotExistException
Construct an exception with a default message that includes the provided IDs.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionbindingId
- the ID of the service binding
-