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.


225
226
227
228
# File 'lib/msf/core/exception.rb', line 225

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.


233
234
235
# File 'lib/msf/core/exception.rb', line 233

def pname
  @pname
end