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(String expectedVersion,
String providedVersion)
Construct an exception with the expected and provided versions.
|
ServiceBrokerApiVersionException(String errorCode,
String expectedVersion,
String providedVersion)
Construct an exception with an error code and the expected and provided versions.
|
getErrorMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceBrokerApiVersionException(String expectedVersion, String providedVersion)
expectedVersion - the version expected by the service brokerprovidedVersion - the version provided by the platformpublic ServiceBrokerApiVersionException(String errorCode, String expectedVersion, 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