Exception: Msf::RPC::Exception
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Msf::RPC::Exception
- Defined in:
- lib/msfrpc-client/constants.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(code, message) ⇒ Exception
Returns a new instance of Exception.
10 11 12 13 |
# File 'lib/msfrpc-client/constants.rb', line 10 def initialize(code, ) self.code = code self. = end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
8 9 10 |
# File 'lib/msfrpc-client/constants.rb', line 8 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/msfrpc-client/constants.rb', line 8 def @message end |