Exception: Msf::IncompatiblePayloadError

Inherits:
ArgumentError
  • Object
show all
Includes:
ExploitError
Defined in:
lib/msf/core/exceptions.rb

Overview

This exception is raised if an incompatible payload was specified when attempting to exploit something.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pname = nil) ⇒ IncompatiblePayloadError

Returns a new instance of IncompatiblePayloadError.


226
227
228
229
# File 'lib/msf/core/exceptions.rb', line 226

def initialize(pname = nil)
  @pname = pname
  super("#{pname} is not a compatible payload.")
end

Instance Attribute Details

#pnameObject (readonly)

The name of the payload that was used.


234
235
236
# File 'lib/msf/core/exceptions.rb', line 234

def pname
  @pname
end