Exception: Msf::RPC::JSON::JSONParseError

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 JSON was received from the server', response: nil) ⇒ JSONParseError

Instantiate an JSONParseError object.

Parameters:

  • message (String) (defaults to: 'Invalid JSON was received from the server')

    A String providing a short description of the error.

  • response (Hash) (defaults to: nil)

    A response hash. The default value is nil.



166
167
168
# File 'lib/msf/core/rpc/json/error.rb', line 166

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