Class ServiceBrokerApiVersionErrorMessage

java.lang.Object
org.springframework.cloud.servicebroker.exception.ServiceBrokerApiVersionErrorMessage

public final class ServiceBrokerApiVersionErrorMessage extends Object
Provides a formatted message indicating that the service broker does not support the version of the Open Service Broker API provided by the platform.
Author:
Roy Clarkson
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • from

      public static ServiceBrokerApiVersionErrorMessage from(String expectedVersion, String providedVersion)
      Construct a message with the expected and provided version numbers.
      Parameters:
      expectedVersion - the version expected by the service broker
      providedVersion - the version provided by the platform
      Returns:
      error message