public class ServiceInstanceDoesNotExistException extends ServiceBrokerException
Throwing this exception will result in an HTTP status code 422 UNPROCESSABLE ENTITY being returned to the platform.
Constructor and Description |
---|
ServiceInstanceDoesNotExistException(java.lang.String serviceInstanceId)
Construct an exception with a default message that includes the provided service instance ID.
|
ServiceInstanceDoesNotExistException(java.lang.String errorCode,
java.lang.String serviceInstanceId)
Construct an exception with an error code and default message that includes the
provided service instance ID.
|
getErrorMessage
public ServiceInstanceDoesNotExistException(java.lang.String serviceInstanceId)
serviceInstanceId
- the ID of the service instancepublic ServiceInstanceDoesNotExistException(java.lang.String errorCode, java.lang.String serviceInstanceId)
errorCode
- a single word in camel case that uniquely identifies the error conditionserviceInstanceId
- the ID of the service instance