Exception: Circuitbox::OpenCircuitError
- Defined in:
- lib/circuitbox/errors/open_circuit_error.rb
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(service) ⇒ OpenCircuitError
constructor
A new instance of OpenCircuitError.
- #to_s ⇒ Object
Constructor Details
#initialize(service) ⇒ OpenCircuitError
Returns a new instance of OpenCircuitError.
7 8 9 10 |
# File 'lib/circuitbox/errors/open_circuit_error.rb', line 7 def initialize(service) super() @service = service end |
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
5 6 7 |
# File 'lib/circuitbox/errors/open_circuit_error.rb', line 5 def service @service end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/circuitbox/errors/open_circuit_error.rb', line 12 def to_s "#{self.class}: Service #{service.inspect} has an open circuit" end |