error.d.ts 395 B

1234567891011
  1. type TUFErrorCode = 'TUF_INIT_CACHE_ERROR' | 'TUF_FIND_TARGET_ERROR' | 'TUF_REFRESH_METADATA_ERROR' | 'TUF_DOWNLOAD_TARGET_ERROR' | 'TUF_READ_TARGET_ERROR';
  2. export declare class TUFError extends Error {
  3. code: TUFErrorCode;
  4. cause: any | undefined;
  5. constructor({ code, message, cause, }: {
  6. code: TUFErrorCode;
  7. message: string;
  8. cause?: any;
  9. });
  10. }
  11. export {};