Class ServiceDefinitionPlanDoesNotExistException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceDefinitionPlanDoesNotExistException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a request includes a plan 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:
- Vladislav Pischulin
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct an exception with a default message that includes the provided plan ID.ServiceDefinitionPlanDoesNotExistException
(String errorCode, String planId) Construct an exception with an error code and default message that includes the provided plan 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
-
ServiceDefinitionPlanDoesNotExistException
Construct an exception with a default message that includes the provided plan ID.- Parameters:
planId
- the plan ID
-
ServiceDefinitionPlanDoesNotExistException
Construct an exception with an error code and default message that includes the provided plan ID.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionplanId
- the plan ID
-