Exception: Msf::RPC::ServerException

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, error_message, error_class, error_backtrace) ⇒ ServerException

Returns a new instance of ServerException


21
22
23
24
25
26
# File 'lib/msf/core/rpc/v10/constants.rb', line 21

def initialize(code, error_message, error_class, error_backtrace)
  self.code          = code
  self.error_message = error_message
  self.error_class   = error_class
  self.error_backtrace = error_backtrace
end

Instance Attribute Details

#codeObject

Returns the value of attribute code


19
20
21
# File 'lib/msf/core/rpc/v10/constants.rb', line 19

def code
  @code
end

#error_backtraceObject

Returns the value of attribute error_backtrace


19
20
21
# File 'lib/msf/core/rpc/v10/constants.rb', line 19

def error_backtrace
  @error_backtrace
end

#error_classObject

Returns the value of attribute error_class


19
20
21
# File 'lib/msf/core/rpc/v10/constants.rb', line 19

def error_class
  @error_class
end

#error_messageObject

Returns the value of attribute error_message


19
20
21
# File 'lib/msf/core/rpc/v10/constants.rb', line 19

def error_message
  @error_message
end

Instance Method Details

#to_sObject


28
29
30
# File 'lib/msf/core/rpc/v10/constants.rb', line 28

def to_s
  "#{self.error_class} #{self.error_message} #{self.error_backtrace}"
end