UNPKG

apacuana-sdk-web

Version:

Apacuana SDK for Web

16 lines (15 loc) 670 B
export declare const ApacuanaWebErrorCode: { readonly NOT_INITIALIZED: "NOT_INITIALIZED"; readonly UNKNOWN_ERROR: "UNKNOWN_ERROR"; readonly ENCRYPTION_FAILED: "ENCRYPTION_FAILED"; readonly VALIDATION_ERROR: "VALIDATION_ERROR"; readonly NOT_FOUND: "NOT_FOUND"; readonly PARSE_ERROR: "PARSE_ERROR"; }; export type ApacuanaWebErrorCode = (typeof ApacuanaWebErrorCode)[keyof typeof ApacuanaWebErrorCode]; export declare class ApacuanaWebError extends Error { readonly code: ApacuanaWebErrorCode; readonly statusCode: number; readonly success: boolean; constructor(message: string, code?: ApacuanaWebErrorCode, statusCode?: number); }