Exception: Msf::RPC::JSON::ServerError
- Defined in:
- lib/msf/core/rpc/json/error.rb
Overview
Class is reserved for implementation-defined server-error exceptions.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from RpcError
Instance Method Summary collapse
-
#initialize(code, message, data: nil) ⇒ ServerError
constructor
Instantiate a ServerError object.
Methods inherited from RpcError
Constructor Details
#initialize(code, message, data: nil) ⇒ ServerError
Instantiate a ServerError object.
123 124 125 126 127 128 |
# File 'lib/msf/core/rpc/json/error.rb', line 123 def initialize(code, , data: nil) if code < SERVER_ERROR_MIN || code > SERVER_ERROR_MAX raise ArgumentError.new("invalid code #{code}, must be between #{SERVER_ERROR_MAX} and #{SERVER_ERROR_MIN}") end super(code, , data: data) end |