class Rex::Post::Meterpreter::RequestError

Exception thrown when a request fails.

Attributes

code[R]

The error result that occurred, typically a windows error code.

method[R]

The method that failed.

result[R]

The error result that occurred, typically a windows error message.

Public Class Methods

new(method, einfo, ecode=nil) click to toggle source
# File lib/rex/post/meterpreter/packet_dispatcher.rb, line 16
def initialize(method, einfo, ecode=nil)
  @method = method
  @result = einfo
  @code   = ecode || einfo
end

Public Instance Methods

to_s() click to toggle source
# File lib/rex/post/meterpreter/packet_dispatcher.rb, line 22
def to_s
  "#{@method}: Operation failed: #{@result}"
end