UNPKG

@alius/rpc

Version:

JSON-RPC 2.0 implementation configured with OpenRPC

28 lines (23 loc) 476 B
import { RPCException } from "./RPCException.js"; /** * Internal error (code: -32603). * * @extends RPCException */ class InternalException extends RPCException { constructor(message, cause, data) { super( InternalException.CODE, (message) ? message : InternalException.MESSAGE, cause, data, ); } static get CODE() { return -32603; } static get MESSAGE() { return "Internal error"; } } export { InternalException };