UNPKG

@alius/rpc

Version:

JSON-RPC 2.0 implementation configured with OpenRPC

28 lines (23 loc) 504 B
import { RPCException } from "./RPCException.js"; /** * Method not found (code: -32601). * * @extends RPCException */ class MethodNotFoundException extends RPCException { constructor(message, cause, data) { super( MethodNotFoundException.CODE, (message) ? message : MethodNotFoundException.MESSAGE, cause, data, ); } static get CODE() { return -32601; } static get MESSAGE() { return "Method not found"; } } export { MethodNotFoundException };