Class ServiceBrokerBindingRequiresAppException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceBrokerBindingRequiresAppException
- All Implemented Interfaces:
Serializable
Thrown to indicate that the service broker received a binding request without an
application resource, but only supports binding to applications.
Throwing this exception will result in an HTTP status code 422 UNPROCESSABLE ENTITY being returned to the platform.
- Author:
- Scott Frederick
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Error code representing that the service broker received a binding request without an application resource. -
Constructor Summary
ConstructorDescriptionConstruct an exception with the provided message.ServiceBrokerBindingRequiresAppException
(String message, Throwable cause) Construct an exception with the provided message and cause. -
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
-
Field Details
-
APP_REQUIRED_ERROR
Error code representing that the service broker received a binding request without an application resource.- See Also:
-
-
Constructor Details
-
ServiceBrokerBindingRequiresAppException
Construct an exception with the provided message.- Parameters:
message
- the exception message
-
ServiceBrokerBindingRequiresAppException
Construct an exception with the provided message and cause.- Parameters:
message
- the exception messagecause
- the exception cause
-