Exception: Bunny::NetworkFailure

Inherits:
Exception
  • Object
show all
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

Instance Method Summary collapse

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(message, cause)
  super(message)
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)



19
20
21
# File 'lib/bunny/exceptions.rb', line 19

def cause
  @cause
end