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.



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

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.



53
54
55
# File 'lib/bunny/exceptions.rb', line 53

def connection
  @connection
end

#connection_closeObject (readonly)

Returns the value of attribute connection_close.



53
54
55
# File 'lib/bunny/exceptions.rb', line 53

def connection_close
  @connection_close
end