Exception: Worldline::Connect::SDK::Webhooks::ApiVersionMismatchException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Worldline::Connect::SDK::Webhooks::ApiVersionMismatchException
- Defined in:
- lib/worldline/connect/sdk/webhooks/api_version_mismatch_exception.rb
Overview
Raised when a webhooks event has an API version that is not supported by current version of SDK.
Instance Attribute Summary collapse
-
#event_api_version ⇒ String
readonly
The API version from the webhooks event.
-
#sdk_api_version ⇒ String
readonly
The API version that this version of the SDK supports.
Instance Method Summary collapse
-
#initialize(event_api_version, sdk_api_version) ⇒ ApiVersionMismatchException
constructor
A new instance of ApiVersionMismatchException.
Constructor Details
#initialize(event_api_version, sdk_api_version) ⇒ ApiVersionMismatchException
Returns a new instance of ApiVersionMismatchException.
12 13 14 15 16 |
# File 'lib/worldline/connect/sdk/webhooks/api_version_mismatch_exception.rb', line 12 def initialize(event_api_version, sdk_api_version) super("event API version #{event_api_version} is not compatible with SDK API version #{sdk_api_version}") @event_api_version = event_api_version @sdk_api_version = sdk_api_version end |
Instance Attribute Details
#event_api_version ⇒ String (readonly)
The API version from the webhooks event.
10 11 12 |
# File 'lib/worldline/connect/sdk/webhooks/api_version_mismatch_exception.rb', line 10 def event_api_version @event_api_version end |
#sdk_api_version ⇒ String (readonly)
The API version that this version of the SDK supports.
10 11 12 |
# File 'lib/worldline/connect/sdk/webhooks/api_version_mismatch_exception.rb', line 10 def sdk_api_version @sdk_api_version end |