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



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

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



41
42
43
# File 'lib/bunny/exceptions.rb', line 41

def connection
  @connection
end

#connection_closeObject (readonly)

Returns the value of attribute connection_close



41
42
43
# File 'lib/bunny/exceptions.rb', line 41

def connection_close
  @connection_close
end