2023-07-07 11:16:18 +00:00
|
|
|
import { JSONRPCErrorCode, JSONRPCErrorException } from "json-rpc-2.0";
|
2023-03-29 08:58:17 +00:00
|
|
|
|
|
|
|
export class InternalError extends JSONRPCErrorException {
|
|
|
|
constructor(message: string) {
|
|
|
|
super(message, JSONRPCErrorCode.InternalError);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export class InvalidParamsError extends JSONRPCErrorException {
|
|
|
|
constructor(message: string) {
|
|
|
|
super(message, JSONRPCErrorCode.InvalidParams);
|
|
|
|
}
|
|
|
|
}
|