Class: Rex::Proto::Amqp::Error::UnexpectedReplyError

Inherits:
AmqpError
  • Object
show all
Defined in:
lib/rex/proto/amqp/error.rb

Overview

Raised when an unexpected reply is received.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reply, msg = 'An unexpected AMQP reply was received.') ⇒ UnexpectedReplyError

Returns a new instance of UnexpectedReplyError.



16
17
18
19
# File 'lib/rex/proto/amqp/error.rb', line 16

def initialize(reply, msg='An unexpected AMQP reply was received.')
  @reply = reply
  super(msg)
end

Instance Attribute Details

#replyObject (readonly)

Returns the value of attribute reply.



15
16
17
# File 'lib/rex/proto/amqp/error.rb', line 15

def reply
  @reply
end