Exception: Msf::RPC::JSON::InternalError

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(e, data: nil) ⇒ InternalError

Returns a new instance of InternalError.



104
105
106
# File 'lib/msf/core/rpc/json/error.rb', line 104

def initialize(e, data: nil)
  super(INTERNAL_ERROR, "#{ERROR_MESSAGES[INTERNAL_ERROR]}: #{e}", data: data)
end