UNPKG

@alius/rpc

Version:

JSON-RPC 2.0 implementation configured with OpenRPC

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