Class ServiceInstanceBindingExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceInstanceBindingExistsException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a service binding create request was received for a binding
that already exists with parameters that are different from the existing binding.
Throwing this exception will result in an HTTP status code 409 CONFLICT being returned to the platform.
- Author:
- S Greenberg, Scott Frederick, Roy Clarkson
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceInstanceBindingExistsException
(String serviceInstanceId, String bindingId) Construct an exception with a default message that includes the provided IDs.ServiceInstanceBindingExistsException
(String errorCode, String serviceInstanceId, 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
-
ServiceInstanceBindingExistsException
Construct an exception with a default message that includes the provided IDs.- Parameters:
serviceInstanceId
- the service instance IDbindingId
- the ID of the service binding
-
ServiceInstanceBindingExistsException
public ServiceInstanceBindingExistsException(String errorCode, String serviceInstanceId, String bindingId) 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 conditionserviceInstanceId
- the service instance IDbindingId
- the ID of the service binding
-