Exception: Msf::RPC::JSON::InvalidResponse

Inherits:
ClientError
  • Object
show all
Defined in:
lib/msf/core/rpc/json/error.rb

Instance Attribute Summary

Attributes inherited from ClientError

#response

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Invalid response from server', response: nil) ⇒ InvalidResponse

Instantiate an InvalidResponse object.

Parameters:

  • message (String) (defaults to: 'Invalid response from server')

    A String providing a short description of the error.

  • response (Hash) (defaults to: nil)

    A response hash. The default value is nil.



156
157
158
# File 'lib/msf/core/rpc/json/error.rb', line 156

def initialize(message = 'Invalid response from server', response: nil)
  super(message, response: response)
end