Class: Rex::Proto::Amqp::Error::UnexpectedReplyError
- Inherits:
-
AmqpError
- Object
- RuntimeError
- AmqpError
- Rex::Proto::Amqp::Error::UnexpectedReplyError
- Defined in:
- lib/rex/proto/amqp/error.rb
Overview
Raised when an unexpected reply is received.
Instance Attribute Summary collapse
-
#reply ⇒ Object
readonly
Returns the value of attribute reply.
Instance Method Summary collapse
-
#initialize(reply, msg = 'An unexpected AMQP reply was received.') ⇒ UnexpectedReplyError
constructor
A new instance of UnexpectedReplyError.
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
#reply ⇒ Object (readonly)
Returns the value of attribute reply.
15 16 17 |
# File 'lib/rex/proto/amqp/error.rb', line 15 def reply @reply end |