error.d.ts 566 B

123456789101112
  1. type InternalErrorCode = 'TLOG_FETCH_ENTRY_ERROR' | 'TLOG_CREATE_ENTRY_ERROR' | 'CA_CREATE_SIGNING_CERTIFICATE_ERROR' | 'TSA_CREATE_TIMESTAMP_ERROR' | 'IDENTITY_TOKEN_READ_ERROR' | 'IDENTITY_TOKEN_PARSE_ERROR';
  2. export declare class InternalError extends Error {
  3. code: InternalErrorCode;
  4. cause: any | undefined;
  5. constructor({ code, message, cause, }: {
  6. code: InternalErrorCode;
  7. message: string;
  8. cause?: any;
  9. });
  10. }
  11. export declare function internalError(err: unknown, code: InternalErrorCode, message: string): never;
  12. export {};