import { OpenrpcDocument as OpenRPC } from "../types"; /** * Provides an error interface for handling when a method is trying to be called but does not exist. */ export default class MethodNotFoundError implements Error { methodName: string; openrpcDocument: OpenRPC; receievedParams: any[] | Record; name: string; message: string; /** * @param methodName The method name that was used. * @param openrpcDocument The OpenRPC document that the method was used against. * @param receievedParams The params, if any, that were used. */ constructor(methodName: string, openrpcDocument: OpenRPC, receievedParams?: any[] | Record); }