shora-ai-payment-sdk
Version:
The first open-source payment SDK designed specifically for AI agents and chatbots - ACP Compatible
16 lines • 649 B
TypeScript
/**
* Error handling utilities
*/
export declare class ShoraError extends Error {
readonly status?: number;
readonly code?: string;
readonly context?: string;
readonly timestamp: string;
constructor(message: string, status?: number, code?: string, context?: string);
}
export declare function parseError(error: any): ShoraError;
export declare function isRetryableError(error: any): boolean;
export declare function getErrorMessage(error: any): string;
export declare function getErrorCode(error: any): string;
export declare function getErrorStatus(error: any): number | undefined;
//# sourceMappingURL=error-handling.d.ts.map