public class ServiceInstanceExistsException extends ServiceBrokerException
Throwing this exception will result in an HTTP status code 409 CONFLICT being returned to the platform.
Constructor and Description |
---|
ServiceInstanceExistsException(java.lang.String serviceInstanceId,
java.lang.String serviceDefinitionId)
Construct an exception with a default message that includes the provided IDs.
|
ServiceInstanceExistsException(java.lang.String errorCode,
java.lang.String serviceInstanceId,
java.lang.String serviceDefinitionId)
Construct an exception with an error code and default message that includes the provided IDs.
|
getErrorMessage
public ServiceInstanceExistsException(java.lang.String serviceInstanceId, java.lang.String serviceDefinitionId)
serviceInstanceId
- the ID of the service instanceserviceDefinitionId
- the ID of the service definitionpublic ServiceInstanceExistsException(java.lang.String errorCode, java.lang.String serviceInstanceId, java.lang.String serviceDefinitionId)
errorCode
- a single word in camel case that uniquely identifies the error conditionserviceInstanceId
- the ID of the service instanceserviceDefinitionId
- the ID of the service definition