Exception: Ingenico::Direct::SDK::Webhooks::ApiVersionMismatchException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Ingenico::Direct::SDK::Webhooks::ApiVersionMismatchException
- Defined in:
- lib/ingenico/direct/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.
10 11 12 13 14 |
# File 'lib/ingenico/direct/sdk/webhooks/api_version_mismatch_exception.rb', line 10 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.
8 9 10 |
# File 'lib/ingenico/direct/sdk/webhooks/api_version_mismatch_exception.rb', line 8 def event_api_version @event_api_version end |
#sdk_api_version ⇒ String (readonly)
The API version that this version of the SDK supports.
8 9 10 |
# File 'lib/ingenico/direct/sdk/webhooks/api_version_mismatch_exception.rb', line 8 def sdk_api_version @sdk_api_version end |