Exception: Msf::RhostsWalker::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/msf/core/rhosts_walker.rb

Overview

An error which additionally keeps track of a particular rhost substring which resulted in an error when enumerating the provided rhost string

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, msg = "Unexpected rhost value: #{value.inspect}", cause: nil) ⇒ Error

Returns a new instance of Error.


33
34
35
36
37
38
# File 'lib/msf/core/rhosts_walker.rb', line 33

def initialize(value, msg = "Unexpected rhost value: #{value.inspect}", cause: nil)
  super(msg)
  @value = value
  @cause = cause
  set_backtrace(cause.backtrace) if cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.


31
32
33
# File 'lib/msf/core/rhosts_walker.rb', line 31

def cause
  @cause
end

#valueObject (readonly)

Returns the value of attribute value.


31
32
33
# File 'lib/msf/core/rhosts_walker.rb', line 31

def value
  @value
end