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.



60
61
62
63
64
65
# File 'lib/bunny/exceptions.rb', line 60

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.



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

def connection
  @connection
end

#connection_closeObject (readonly)

Returns the value of attribute connection_close.



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

def connection_close
  @connection_close
end