{"version":3,"file":"X509Error.mjs","names":[],"sources":["../../../src/modules/x509/X509Error.ts"],"sourcesContent":["import { CredoError } from '../../error'\nimport type { X509ValidationResult } from './X509ValidationResult'\n\nexport class X509Error extends CredoError {}\n\n/**\n * Error indicating that a CRL could not be obtained (e.g. network failure, timeout, or HTTP error)\n * from any of a distribution point's URLs.\n */\nexport class X509CrlUnavailableError extends X509Error {}\n\n/**\n * Enhanced X509 error that includes detailed validation results\n */\nexport class X509ValidationError extends X509Error {\n  public validationResult: X509ValidationResult\n\n  constructor(message: string, validationResult: X509ValidationResult) {\n    super(message)\n    this.validationResult = validationResult\n  }\n}\n"],"mappings":";;;AAGA,IAAa,YAAb,cAA+B,WAAW,CAAC;;;;;AAM3C,IAAa,0BAAb,cAA6C,UAAU,CAAC;;;;AAKxD,IAAa,sBAAb,cAAyC,UAAU;CAGjD,YAAY,SAAiB,kBAAwC;EACnE,MAAM,OAAO;EACb,KAAK,mBAAmB;CAC1B;AACF"}