public class ServiceInstanceDoesNotExistException 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 or service instance binding, an HTTP status 404 NOT FOUND is returned. If this exception is thrown when deleting a service instance, an HTTP status 410 GONE is returned.
ServiceInstanceController
,
ServiceInstanceBindingController
,
Serialized FormConstructor and Description |
---|
ServiceInstanceDoesNotExistException(String serviceInstanceId)
Construct an exception with a default message that includes the provided service instance ID.
|
ServiceInstanceDoesNotExistException(String errorCode,
String serviceInstanceId)
Construct an exception with an error code and default message that includes the provided service instance ID.
|
getErrorMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ServiceInstanceDoesNotExistException(String serviceInstanceId)
serviceInstanceId
- the service instance IDpublic ServiceInstanceDoesNotExistException(String errorCode, String serviceInstanceId)
errorCode
- a single word in camel case that uniquely identifies the error conditionserviceInstanceId
- the service instance ID