Class ServiceBrokerApiVersionException

All Implemented Interfaces:
Serializable

public class ServiceBrokerApiVersionException extends ServiceBrokerException
Thrown to indicate that the version of the API supported by the broker doesn't match the version provided by the platform.

Throwing this exception will result in an HTTP status code 412 PRECONDITION FAILED being returned to the platform.

Author:
Scott Frederick
See Also:
  • Constructor Details

    • ServiceBrokerApiVersionException

      public ServiceBrokerApiVersionException(String expectedVersion, String providedVersion)
      Construct an exception with the expected and provided versions.
      Parameters:
      expectedVersion - the version expected by the service broker
      providedVersion - the version provided by the platform
    • ServiceBrokerApiVersionException

      public ServiceBrokerApiVersionException(String errorCode, String expectedVersion, String providedVersion)
      Construct an exception with an error code and the expected and provided versions.
      Parameters:
      errorCode - a single word in camel case that uniquely identifies the error condition
      expectedVersion - the version expected by the service broker
      providedVersion - the version provided by the platform