Class ServiceInstanceExistsException

All Implemented Interfaces:
Serializable

public class ServiceInstanceExistsException extends ServiceBrokerException
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 Details

    • ServiceInstanceExistsException

      public ServiceInstanceExistsException(String serviceInstanceId, String serviceDefinitionId)
      Construct an exception with a default message that includes the provided IDs.
      Parameters:
      serviceInstanceId - the service instance ID
      serviceDefinitionId - 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 condition
      serviceInstanceId - the service instance ID
      serviceDefinitionId - the service definition ID