public class ServiceInstanceBindingDoesNotExistException extends ServiceBrokerException
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.
ServiceInstanceBindingController
,
Serialized FormConstructor and Description |
---|
ServiceInstanceBindingDoesNotExistException(String bindingId)
Construct an exception with a default message that includes the provided service binding ID.
|
ServiceInstanceBindingDoesNotExistException(String errorCode,
String bindingId)
Construct an exception with a default message that includes the provided IDs.
|
getErrorMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ServiceInstanceBindingDoesNotExistException(String bindingId)
bindingId
- the ID of the service bindingpublic ServiceInstanceBindingDoesNotExistException(String errorCode, String bindingId)
errorCode
- a single word in camel case that uniquely identifies the error conditionbindingId
- the ID of the service binding