UNPKG

askexperts

Version:

AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol

64 lines (63 loc) 1.55 kB
/** * Error classes for AskExpertsClient */ /** * Base error class for AskExpertsClient */ export declare class AskExpertsError extends Error { constructor(message: string); } /** * Error thrown when a relay operation fails */ export declare class RelayError extends AskExpertsError { constructor(message: string); } /** * Error thrown when a timeout occurs */ export declare class TimeoutError extends AskExpertsError { constructor(message: string); } /** * Error thrown when an expert returns an error */ export declare class ExpertError extends AskExpertsError { constructor(message: string); } /** * Error thrown when payment fails */ export declare class PaymentError extends AskExpertsError { constructor(message: string); } /** * Error thrown when payment is rejected by the client */ export declare class PaymentRejectedError extends PaymentError { constructor(message: string); } /** * Error thrown when payment fails due to technical issues */ export declare class PaymentFailedError extends PaymentError { constructor(message: string); } /** * Error thrown when an invalid event is received */ export declare class InvalidEventError extends AskExpertsError { constructor(message: string); } /** * Error thrown when decryption fails */ export declare class DecryptionError extends AskExpertsError { constructor(message: string); } /** * Error thrown when decompression fails */ export declare class DecompressionError extends AskExpertsError { constructor(message: string); }