Exception: AMQP::Client::Error::UnexpectedFrame

Inherits:
AMQP::Client::Error show all
Defined in:
lib/amqp/client/errors.rb

Overview

Raised when a frame that wasn’t expected arrives

Instance Method Summary collapse

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