Exception: ComplyanceSDK::Exceptions::CircuitBreakerOpenError

Inherits:
SDKException
  • Object
show all
Defined in:
lib/complyance_sdk/exceptions/circuit_breaker_open_error.rb

Overview

Exception raised when circuit breaker is open

Instance Attribute Summary

Attributes inherited from SDKException

#code, #context, #suggestion

Instance Method Summary collapse

Methods inherited from SDKException

#to_h

Constructor Details

#initialize(message = "Circuit breaker is open", **kwargs) ⇒ CircuitBreakerOpenError

Returns a new instance of CircuitBreakerOpenError.



9
10
11
# File 'lib/complyance_sdk/exceptions/circuit_breaker_open_error.rb', line 9

def initialize(message = "Circuit breaker is open", **kwargs)
  super(message, context: { code: :circuit_breaker_open, **kwargs })
end