UNPKG

@alius/rpc

Version:

JSON-RPC 2.0 implementation configured with OpenRPC

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