Exception: Msf::MissingActionError

Inherits:
ArgumentError
  • Object
show all
Includes:
AuxiliaryError
Defined in:
lib/msf/core/exception.rb

Overview

This exception is raised if a valid action was not specified when attempting to run an auxiliary module.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason = '') ⇒ MissingActionError

Returns a new instance of MissingActionError.



223
224
225
226
# File 'lib/msf/core/exception.rb', line 223

def initialize(reason='')
  @reason = reason
  super("Invalid action: #{@reason}")
end

Instance Attribute Details

#reasonObject

Returns the value of attribute reason.



221
222
223
# File 'lib/msf/core/exception.rb', line 221

def reason
  @reason
end