Class ServiceInstanceExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceInstanceExistsException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a service instance create request was received for an instance
that already exists with parameters that are different from the existing instance.
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
ConstructorDescriptionServiceInstanceExistsException
(String serviceInstanceId, String serviceDefinitionId) Construct an exception with a default message that includes the provided IDs.ServiceInstanceExistsException
(String errorCode, String serviceInstanceId, String serviceDefinitionId) Construct an exception with an error code and 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
-
ServiceInstanceExistsException
Construct an exception with a default message that includes the provided IDs.- Parameters:
serviceInstanceId
- the service instance IDserviceDefinitionId
- the service definition ID
-
ServiceInstanceExistsException
public ServiceInstanceExistsException(String errorCode, String serviceInstanceId, String serviceDefinitionId) Construct an exception with an error code and default message that includes the provided IDs.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionserviceInstanceId
- the service instance IDserviceDefinitionId
- the service definition ID
-