Exception: Msf::RPC::Exception

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/msf/core/rpc/v10/constants.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ Exception


11
12
13
14
# File 'lib/msf/core/rpc/v10/constants.rb', line 11

def initialize(code, message)
  self.code    = code
  self.message = message
end

Instance Attribute Details

#codeObject

Returns the value of attribute code


9
10
11
# File 'lib/msf/core/rpc/v10/constants.rb', line 9

def code
  @code
end

#messageObject

Returns the value of attribute message


9
10
11
# File 'lib/msf/core/rpc/v10/constants.rb', line 9

def message
  @message
end