Exception: Msf::RPC::JSON::MethodNotFound

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(method, data: nil) ⇒ MethodNotFound

Returns a new instance of MethodNotFound.



92
93
94
# File 'lib/msf/core/rpc/json/error.rb', line 92

def initialize(method, data: nil)
  super(METHOD_NOT_FOUND, ERROR_MESSAGES[METHOD_NOT_FOUND] % {name: method}, data: data)
end