Exception: Msf::RPC::JSON::InvalidRequest

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

Instance Attribute Summary

Attributes inherited from RpcError

#code, #data, #message

Instance Method Summary collapse

Methods inherited from RpcError

#to_h

Constructor Details

#initialize(data: nil) ⇒ InvalidRequest

Returns a new instance of InvalidRequest.



86
87
88
# File 'lib/msf/core/rpc/json/error.rb', line 86

def initialize(data: nil)
  super(INVALID_REQUEST, ERROR_MESSAGES[INVALID_REQUEST], data: data)
end