Exception: GorgonBunny::ConnectionClosedError
- Defined in:
- lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb
Overview
Raised when a frame is sent over an already closed connection
Instance Method Summary collapse
-
#initialize(frame) ⇒ ConnectionClosedError
constructor
A new instance of ConnectionClosedError.
Constructor Details
#initialize(frame) ⇒ ConnectionClosedError
Returns a new instance of ConnectionClosedError.
64 65 66 67 68 69 70 |
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 64 def initialize(frame) if frame.respond_to?(:method_class) super("Trying to send frame through a closed connection. Frame is #{frame.inspect}, method class is #{frame.method_class}") else super("Trying to send frame through a closed connection. Frame is #{frame.inspect}") end end |