Class ApiVersionMismatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.onlinepayments.webhooks.ApiVersionMismatchException
All Implemented Interfaces:
Serializable

public class ApiVersionMismatchException extends RuntimeException
Represents an error because a webhooks event has an API version that this version of the SDK does not support.
See Also:
  • Constructor Details

    • ApiVersionMismatchException

      public ApiVersionMismatchException(String eventApiVersion, String sdkApiVersion)
  • Method Details

    • getEventApiVersion

      public String getEventApiVersion()
      Returns:
      The API version from the webhooks event.
    • getSdkApiVersion

      public String getSdkApiVersion()
      Returns:
      The API version that this version of the SDK supports.