Class ServiceInstanceBindingDoesNotExistException

All Implemented Interfaces:
Serializable

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

    • ServiceInstanceBindingDoesNotExistException

      public ServiceInstanceBindingDoesNotExistException(String bindingId)
      Construct an exception with a default message that includes the provided service binding ID.
      Parameters:
      bindingId - the ID of the service binding
    • ServiceInstanceBindingDoesNotExistException

      public ServiceInstanceBindingDoesNotExistException(String errorCode, 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 condition
      bindingId - the ID of the service binding