Exception: Msf::IncompatiblePayloadError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Msf::IncompatiblePayloadError
- Includes:
- ExploitError
- Defined in:
- lib/msf/core/exception.rb
Overview
This exception is raised if an incompatible payload was specified when attempting to exploit something.
Instance Attribute Summary collapse
-
#pname ⇒ Object
readonly
The name of the payload that was used.
Instance Method Summary collapse
-
#initialize(pname = nil) ⇒ IncompatiblePayloadError
constructor
A new instance of IncompatiblePayloadError.
Constructor Details
#initialize(pname = nil) ⇒ IncompatiblePayloadError
Returns a new instance of IncompatiblePayloadError.
238 239 240 241 |
# File 'lib/msf/core/exception.rb', line 238 def initialize(pname = nil) @pname = pname super("#{pname} is not a compatible payload.") end |
Instance Attribute Details
#pname ⇒ Object (readonly)
The name of the payload that was used.
246 247 248 |
# File 'lib/msf/core/exception.rb', line 246 def pname @pname end |