Exception: Msf::Modules::MetasploitClassCompatibilityError

Inherits:
Error
  • Object
show all
Defined in:
lib/msf/core/modules/metasploit_class_compatibility_error.rb

Overview

Error raised by Namespace#metasploit_class! if it cannot the namespace_module does not have a constant with Framework::Major or lower as a number after 'Metasploit', which indicates a compatible Msf::Module.

Instance Attribute Summary

Attributes inherited from Error

#module_path, #module_reference_name

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ MetasploitClassCompatibilityError

Returns a new instance of MetasploitClassCompatibilityError


6
7
8
9
10
11
12
# File 'lib/msf/core/modules/metasploit_class_compatibility_error.rb', line 6

def initialize(attributes={})
  super_attributes = {
      :causal_message => 'Missing compatible Metasploit<major_version> class constant',
  }.merge(attributes)

  super(super_attributes)
end