Exception: Bunny::NotAllowedError

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

Overview

Can indicate either a channel or connection-level issue

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, connection, connection_close = nil) ⇒ NotAllowedError

Returns a new instance of NotAllowedError.



57
58
59
60
61
62
# File 'lib/bunny/exceptions.rb', line 57

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

  @connection       = connection
  @connection_close = connection_close
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



55
56
57
# File 'lib/bunny/exceptions.rb', line 55

def connection
  @connection
end

#connection_closeObject (readonly)

Returns the value of attribute connection_close.



55
56
57
# File 'lib/bunny/exceptions.rb', line 55

def connection_close
  @connection_close
end