export { MalformedCapability } from "@ucanto/validator"; /** * @implements {API.HandlerNotFound} */ export class HandlerNotFound extends RangeError implements API.HandlerNotFound { /** * @param {API.Capability} capability */ constructor(capability: API.Capability); /** @type {true} */ error: true; capability: API.Capability; /** @type {'HandlerNotFound'} */ get name(): "HandlerNotFound"; get message(): string; toJSON(): { name: "HandlerNotFound"; error: true; capability: { can: API.Ability; with: `${string}:${string}`; }; message: string; stack: string | undefined; }; } export class HandlerExecutionError extends Failure { /** * @param {API.Capability} capability * @param {Error} cause */ constructor(capability: API.Capability, cause: Error); capability: API.Capability; cause: Error; /** @type { true } */ error: true; /** @type {'HandlerExecutionError'} */ get name(): "HandlerExecutionError"; toJSON(): { name: "HandlerExecutionError"; error: true; capability: { can: API.Ability; with: `${string}:${string}`; }; cause: { name: string; message: string; stack: string | undefined; }; message: string; stack: string | undefined; }; } export class InvocationCapabilityError extends Error { /** * @param {any} caps */ constructor(caps: any); /** @type {true} */ error: true; caps: any; get name(): string; get message(): string; toJSON(): { name: string; error: true; message: string; capabilities: any; }; } import * as API from '@ucanto/interface'; import { Failure } from '@ucanto/core'; //# sourceMappingURL=error.d.ts.map