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