public class ServiceBrokerApiVersionException extends ServiceBrokerException
Throwing this exception will result in an HTTP status code 412 PRECONDITION FAILED being returned to the platform.
Constructor and Description |
---|
ServiceBrokerApiVersionException(java.lang.String expectedVersion,
java.lang.String providedVersion)
Construct an exception with the expected and provided versions.
|
ServiceBrokerApiVersionException(java.lang.String errorCode,
java.lang.String expectedVersion,
java.lang.String providedVersion)
Construct an exception with an error code and the expected and provided versions.
|
getErrorMessage
public ServiceBrokerApiVersionException(java.lang.String expectedVersion, java.lang.String providedVersion)
expectedVersion
- the version expected by the service brokerprovidedVersion
- the version provided by the platformpublic ServiceBrokerApiVersionException(java.lang.String errorCode, java.lang.String expectedVersion, java.lang.String providedVersion)
errorCode
- a single word in camel case that uniquely identifies the error conditionexpectedVersion
- the version expected by the service brokerprovidedVersion
- the version provided by the platform