Exception: Bunny::NetworkErrorWrapper

Inherits:
Exception
  • Object
show all
Defined in:
lib/bunny/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(other) ⇒ NetworkErrorWrapper

Returns a new instance of NetworkErrorWrapper.



250
251
252
253
# File 'lib/bunny/exceptions.rb', line 250

def initialize(other)
  super(other.message)
  @other = other
end

Instance Attribute Details

#otherObject (readonly)

Returns the value of attribute other.



248
249
250
# File 'lib/bunny/exceptions.rb', line 248

def other
  @other
end