Class ServiceBrokerApiVersionMissingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceBrokerApiVersionMissingException
- All Implemented Interfaces:
Serializable
Thrown to indicate that the API version header is missing from the request.
Throwing this exception will result in an HTTP status code 400 BAD REQUEST being returned to the platform.
- Author:
- Roy Clarkson
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceBrokerApiVersionMissingException
(String expectedVersion) Construct an exception with the expected version.ServiceBrokerApiVersionMissingException
(String errorCode, String expectedVersion) Construct an exception with an error code and the expected version. -
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
-
ServiceBrokerApiVersionMissingException
Construct an exception with the expected version.- Parameters:
expectedVersion
- the version expected by the service broker
-
ServiceBrokerApiVersionMissingException
Construct an exception with an error code and the expected version.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionexpectedVersion
- the version expected by the service broker
-