Exception: Msf::MissingActionError

Inherits:
ArgumentError
  • Object
show all
Includes:
AuxiliaryError
Defined in:
lib/msf/core/exceptions.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.


211
212
213
214
# File 'lib/msf/core/exceptions.rb', line 211

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

Instance Attribute Details

#reasonObject

Returns the value of attribute reason


209
210
211
# File 'lib/msf/core/exceptions.rb', line 209

def reason
  @reason
end