Class ServiceBrokerApiVersionMissingException

All Implemented Interfaces:
Serializable

public class ServiceBrokerApiVersionMissingException extends ServiceBrokerException
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 Details

    • ServiceBrokerApiVersionMissingException

      public ServiceBrokerApiVersionMissingException(String expectedVersion)
      Construct an exception with the expected version.
      Parameters:
      expectedVersion - the version expected by the service broker
    • ServiceBrokerApiVersionMissingException

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