Exception: Msf::IncompatiblePayloadError

Inherits:
ArgumentError
  • Object
show all
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

Instance Method Summary collapse

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

#pnameObject (readonly)

The name of the payload that was used.



246
247
248
# File 'lib/msf/core/exception.rb', line 246

def pname
  @pname
end