Exception: GorgonBunny::NetworkFailure

Inherits:
Exception
  • Object
show all
Defined in:
lib/gorgon_bunny/lib/gorgon_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.



15
16
17
18
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 15

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

Instance Attribute Details

#causeObject (readonly)



13
14
15
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 13

def cause
  @cause
end