Exception: AMQP::Client::Error::UnexpectedFrame
- Inherits:
-
AMQP::Client::Error
- Object
- StandardError
- AMQP::Client::Error
- AMQP::Client::Error::UnexpectedFrame
- Defined in:
- lib/amqp/client/errors.rb
Overview
Raised when a frame that wasn’t expected arrives
Instance Method Summary collapse
-
#initialize(expected, actual) ⇒ UnexpectedFrame
constructor
A new instance of UnexpectedFrame.
Constructor Details
#initialize(expected, actual) ⇒ UnexpectedFrame
Returns a new instance of UnexpectedFrame.
9 10 11 |
# File 'lib/amqp/client/errors.rb', line 9 def initialize(expected, actual) super "Expected frame type '#{expected}' but got '#{actual}'" end |