Exception: Faulty::CircuitError

Inherits:
FaultyError
  • Object
show all
Defined in:
lib/faulty/error.rb

Overview

The base error for all errors raised during circuit runs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, circuit) ⇒ CircuitError

Returns a new instance of CircuitError.


36
37
38
39
40
41
# File 'lib/faulty/error.rb', line 36

def initialize(message, circuit)
  message ||= %(circuit error for "#{circuit.name}")
  @circuit = circuit

  super(message)
end

Instance Attribute Details

#circuitObject (readonly)

Returns the value of attribute circuit


34
35
36
# File 'lib/faulty/error.rb', line 34

def circuit
  @circuit
end