14 lines
379 B
TypeScript
14 lines
379 B
TypeScript
|
import { JSONRPCErrorCode, JSONRPCErrorException } from 'json-rpc-2.0';
|
||
|
|
||
|
export class InternalError extends JSONRPCErrorException {
|
||
|
constructor(message: string) {
|
||
|
super(message, JSONRPCErrorCode.InternalError);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class InvalidParamsError extends JSONRPCErrorException {
|
||
|
constructor(message: string) {
|
||
|
super(message, JSONRPCErrorCode.InvalidParams);
|
||
|
}
|
||
|
}
|