import { TypeId } from "../../types"; import { JRPCErrorInline, JRPCErrorResponseBodyInterface } from "../../interfaces"; import { JrpcClientBaseException } from "./jrpc-client-base.exception"; /** * JRPC Response Exception Abstract * * @abstract * @licence MIT * @author Mahsum UREBE * @protected */ export declare abstract class JRPCExceptionAbstract extends JrpcClientBaseException { protected readonly error: JRPCErrorInline; protected readonly id: TId; protected readonly jsonrpc: "2.0"; protected constructor(error: JRPCErrorInline, id?: TId, jsonrpc?: "2.0"); /** * Error to Object * * @return {object} */ toObject(): JRPCErrorResponseBodyInterface; /** * Error to JSON String */ toJSON(): string; /** * Stringify error * * @return {string} */ toString(): string; }