Exception: NakoPay::IdempotencyError

Inherits:
APIError show all
Defined in:
lib/nakopay/errors.rb

Overview

Raised when an idempotency key is reused with different parameters.

Instance Attribute Summary

Attributes inherited from APIError

#code, #doc_url, #param, #request_id, #status_code, #type

Instance Method Summary collapse

Methods inherited from APIError

#retryable?

Constructor Details

#initialize(message: "Idempotency conflict", **kwargs) ⇒ IdempotencyError

Returns a new instance of IdempotencyError.



45
46
47
48
49
# File 'lib/nakopay/errors.rb', line 45

def initialize(message: "Idempotency conflict", **kwargs)
  kwargs[:code] ||= "idempotency_error"
  kwargs[:type] ||= "idempotency_error"
  super(message: message, **kwargs)
end