Exception: Bunny::NetworkFailure
- Defined in:
- lib/bunny/exceptions.rb
Overview
Indicates a network failure. If automatic network recovery mode is enabled, these will be typically handled by the client itself.
Instance Attribute Summary collapse
- #cause ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(message, cause) ⇒ NetworkFailure
constructor
A new instance of NetworkFailure.
Constructor Details
#initialize(message, cause) ⇒ NetworkFailure
Returns a new instance of NetworkFailure.
21 22 23 24 |
# File 'lib/bunny/exceptions.rb', line 21 def initialize(, cause) super() @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
19 20 21 |
# File 'lib/bunny/exceptions.rb', line 19 def cause @cause end |