Exception: Bunny::ConnectionLevelException

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

Overview

Base class for all connection level exceptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, connection, connection_close) ⇒ ConnectionLevelException

Returns a new instance of ConnectionLevelException.



48
49
50
51
52
53
# File 'lib/bunny/exceptions.rb', line 48

def initialize(message, connection, connection_close)
  super(message)

  @connection       = connection
  @connection_close = connection_close
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



46
47
48
# File 'lib/bunny/exceptions.rb', line 46

def connection
  @connection
end

#connection_closeObject (readonly)

Returns the value of attribute connection_close.



46
47
48
# File 'lib/bunny/exceptions.rb', line 46

def connection_close
  @connection_close
end