Exception: Msf::RhostsWalker::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Msf::RhostsWalker::Error
- 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
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, msg = "Unexpected rhost value: #{value.inspect}", cause: nil) ⇒ Error
constructor
A new instance of Error.
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
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
31 32 33 |
# File 'lib/msf/core/rhosts_walker.rb', line 31 def cause @cause end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
31 32 33 |
# File 'lib/msf/core/rhosts_walker.rb', line 31 def value @value end |