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


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

def initialize(pname = nil)
  @pname = pname
end

Instance Attribute Details

#pnameObject (readonly)

The name of the payload that was used.


239
240
241
# File 'lib/msf/core/exceptions.rb', line 239

def pname
  @pname
end

Instance Method Details

#to_sObject


232
233
234
# File 'lib/msf/core/exceptions.rb', line 232

def to_s
  "#{pname} is not a compatible payload."
end