Exception: GorgonBunny::ConnectionLevelException

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



37
38
39
40
41
42
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 37

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.



35
36
37
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 35

def connection
  @connection
end

#connection_closeObject (readonly)

Returns the value of attribute connection_close.



35
36
37
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 35

def connection_close
  @connection_close
end