Class: Rex::Proto::Thrift::Error::UnexpectedReplyError
- Inherits:
-
ThriftError
- Object
- RuntimeError
- ThriftError
- Rex::Proto::Thrift::Error::UnexpectedReplyError
- Defined in:
- lib/rex/proto/thrift/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 Thrift reply was received.') ⇒ UnexpectedReplyError
constructor
A new instance of UnexpectedReplyError.
Constructor Details
#initialize(reply, msg = 'An unexpected Thrift reply was received.') ⇒ UnexpectedReplyError
Returns a new instance of UnexpectedReplyError.
16 17 18 19 |
# File 'lib/rex/proto/thrift/error.rb', line 16 def initialize(reply, msg='An unexpected Thrift 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/thrift/error.rb', line 15 def reply @reply end |