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.


210
211
212
213
# File 'lib/msf/core/exception.rb', line 210

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

Instance Attribute Details

#reasonObject

Returns the value of attribute reason


208
209
210
# File 'lib/msf/core/exception.rb', line 208

def reason
  @reason
end