Class ServiceDefinitionDoesNotExistException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceDefinitionDoesNotExistException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a request includes a service definition ID that does not exist
in the service broker catalog.
Throwing this exception will result in an HTTP status code 400 BAD REQUEST being returned to the platform.
- Author:
- S Greenberg
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceDefinitionDoesNotExistException
(String serviceDefinitionId) Construct an exception with a default message that includes the provided service definition ID.ServiceDefinitionDoesNotExistException
(String errorCode, String serviceDefinitionId) Construct an exception with an error code and default message that includes the provided service definition ID. -
Method Summary
Methods inherited from class org.springframework.cloud.servicebroker.exception.ServiceBrokerException
getErrorMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceDefinitionDoesNotExistException
Construct an exception with a default message that includes the provided service definition ID.- Parameters:
serviceDefinitionId
- the service definition ID
-
ServiceDefinitionDoesNotExistException
Construct an exception with an error code and default message that includes the provided service definition ID.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionserviceDefinitionId
- the service definition ID
-