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) ⇒ void

Initializes Exception.

Parameters:

  • code (Integer)

    An error code.

  • message (String)

    An error message.



16
17
18
19
# File 'lib/msf/core/rpc/v10/constants.rb', line 16

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