{"version":3,"file":"errors.cjs","sources":["../../../../../src/modules/abstract/did/errors.js"],"sourcesContent":["/**\n * Error thrown when a DID document lookup was successful, but the DID in question does not exist.\n * This is different from a network error.\n */\nexport class NoDIDError extends Error {\n  constructor(did) {\n    super(`DID (${did}) does not exist`);\n    this.name = 'NoDIDError';\n    this.did = did;\n    this.message = `A DID document lookup was successful, but the DID in question does not exist (${did}). This is different from a network error.`;\n  }\n}\n\n/**\n * Error thrown when a DID exists on chain but is an off-chain DID, meaning the DID document exists off-chain.\n */\nexport class NoOnchainDIDError extends Error {\n  constructor(did) {\n    super(`DID (${did}) is an off-chain DID`);\n    this.name = 'NoOnchainDIDError';\n    this.did = did;\n    this.message = 'The DID exists on chain but is an off-chain DID, meaning the DID document exists off-chain.';\n  }\n}\n\n/**\n * Error thrown when a DID exists on chain and is an on-chain DID but the lookup was performed for an off-chain DID.\n */\nexport class NoOffchainDIDError extends Error {\n  constructor(did) {\n    super(`DID (${did}) is an on-chain DID`);\n    this.name = 'NoOffchainDIDError';\n    this.did = did;\n    this.message = 'The DID exists on chain and is an on-chain DID but the lookup was performed for an off-chain DID.';\n  }\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACO,MAAM,UAAU,SAAS,KAAK,CAAC;AACtC,EAAE,WAAW,CAAC,GAAG,EAAE;AACnB,IAAI,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;AACxC,IAAI,IAAI,CAAC,IAAI,GAAG,YAAY;AAC5B,IAAI,IAAI,CAAC,GAAG,GAAG,GAAG;AAClB,IAAI,IAAI,CAAC,OAAO,GAAG,CAAC,8EAA8E,EAAE,GAAG,CAAC,0CAA0C,CAAC;AACnJ,EAAE;AACF;;AAEA;AACA;AACA;AACO,MAAM,iBAAiB,SAAS,KAAK,CAAC;AAC7C,EAAE,WAAW,CAAC,GAAG,EAAE;AACnB,IAAI,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,qBAAqB,CAAC,CAAC;AAC7C,IAAI,IAAI,CAAC,IAAI,GAAG,mBAAmB;AACnC,IAAI,IAAI,CAAC,GAAG,GAAG,GAAG;AAClB,IAAI,IAAI,CAAC,OAAO,GAAG,6FAA6F;AAChH,EAAE;AACF;;AAEA;AACA;AACA;AACO,MAAM,kBAAkB,SAAS,KAAK,CAAC;AAC9C,EAAE,WAAW,CAAC,GAAG,EAAE;AACnB,IAAI,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAC5C,IAAI,IAAI,CAAC,IAAI,GAAG,oBAAoB;AACpC,IAAI,IAAI,CAAC,GAAG,GAAG,GAAG;AAClB,IAAI,IAAI,CAAC,OAAO,GAAG,mGAAmG;AACtH,EAAE;AACF;;;;;;"}