@alius/rpc
Version:
JSON-RPC 2.0 implementation configured with OpenRPC
28 lines (23 loc) • 520 B
JavaScript
import { RPCException } from "./RPCException.js";
/**
* Method execution error (code: -32020).
*
* @extends RPCException
*/
class MethodExecutionException extends RPCException {
constructor(message, cause, data) {
super(
MethodExecutionException.CODE,
(message) ? message : MethodExecutionException.MESSAGE,
cause,
data,
);
}
static get CODE() {
return -32020;
}
static get MESSAGE() {
return "Method execution error";
}
}
export { MethodExecutionException };