Exception: Msf::PluginLoadError

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

Overview

Plugin exceptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason = '') ⇒ PluginLoadError

Returns a new instance of PluginLoadError


289
290
291
292
# File 'lib/msf/core/exceptions.rb', line 289

def initialize(reason='')
  self.reason = reason
  super
end

Instance Attribute Details

#reasonObject

Returns the value of attribute reason


287
288
289
# File 'lib/msf/core/exceptions.rb', line 287

def reason
  @reason
end

Instance Method Details

#to_sObject


294
295
296
# File 'lib/msf/core/exceptions.rb', line 294

def to_s
  "This plugin failed to load:  #{reason}"
end