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.



26
27
28
29
# File 'lib/bunny/exceptions.rb', line 26

def initialize(message, cause)
  super(message)
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)



24
25
26
# File 'lib/bunny/exceptions.rb', line 24

def cause
  @cause
end