Exception: Msf::RPC::ServerException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Msf::RPC::ServerException
- Defined in:
- lib/msf/core/rpc/v10/constants.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#error_backtrace ⇒ Object
Returns the value of attribute error_backtrace.
-
#error_class ⇒ Object
Returns the value of attribute error_class.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
Instance Method Summary collapse
-
#initialize(code, error_message, error_class, error_backtrace) ⇒ void
constructor
Initializes ServerException.
- #to_s ⇒ Object
Constructor Details
#initialize(code, error_message, error_class, error_backtrace) ⇒ void
Initializes ServerException.
33 34 35 36 37 38 |
# File 'lib/msf/core/rpc/v10/constants.rb', line 33 def initialize(code, , error_class, error_backtrace) self.code = code self. = self.error_class = error_class self.error_backtrace = error_backtrace end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
24 25 26 |
# File 'lib/msf/core/rpc/v10/constants.rb', line 24 def code @code end |
#error_backtrace ⇒ Object
Returns the value of attribute error_backtrace.
24 25 26 |
# File 'lib/msf/core/rpc/v10/constants.rb', line 24 def error_backtrace @error_backtrace end |
#error_class ⇒ Object
Returns the value of attribute error_class.
24 25 26 |
# File 'lib/msf/core/rpc/v10/constants.rb', line 24 def error_class @error_class end |
#error_message ⇒ Object
Returns the value of attribute error_message.
24 25 26 |
# File 'lib/msf/core/rpc/v10/constants.rb', line 24 def @error_message end |
Instance Method Details
#to_s ⇒ Object
40 41 42 |
# File 'lib/msf/core/rpc/v10/constants.rb', line 40 def to_s "#{self.error_class} #{self.} #{self.error_backtrace}" end |