Exception: HookBridge::IdempotencyError

Inherits:
Error
  • Object
show all
Defined in:
lib/hookbridge/errors.rb

Overview

Raised when idempotency key conflict occurs (409)

Instance Attribute Summary

Attributes inherited from Error

#code, #request_id, #status_code

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of IdempotencyError.



49
50
51
# File 'lib/hookbridge/errors.rb', line 49

def initialize(message = "Idempotency key conflict", **kwargs)
  super(message, code: "IDEMPOTENCY_CONFLICT", status_code: 409, **kwargs)
end