{"version":3,"file":"AccountNotFoundError.mjs","sources":["../../../src/errors/AccountNotFoundError.ts"],"sourcesContent":["import { PublicKey } from '@metaplex-foundation/umi-public-keys';\nimport { SdkError } from './SdkError';\n\n/** @category Errors */\nexport class AccountNotFoundError extends SdkError {\n  readonly name: string = 'AccountNotFoundError';\n\n  constructor(publicKey: PublicKey, accountType?: string, solution?: string) {\n    const message = `${\n      accountType\n        ? `The account of type [${accountType}] was not found`\n        : 'No account was found'\n    } at the provided address [${publicKey}].${solution ? ` ${solution}` : ''}`;\n    super(message);\n  }\n}\n"],"names":["AccountNotFoundError","SdkError","name","constructor","publicKey","accountType","solution","message"],"mappings":";;AAGA;AACO,MAAMA,oBAAoB,SAASC,QAAQ,CAAC;AACxCC,EAAAA,IAAI,GAAW,sBAAsB,CAAA;AAE9CC,EAAAA,WAAW,CAACC,SAAoB,EAAEC,WAAoB,EAAEC,QAAiB,EAAE;IACzE,MAAMC,OAAO,GAAI,CACfF,EAAAA,WAAW,GACN,CAAuBA,qBAAAA,EAAAA,WAAY,iBAAgB,GACpD,sBACL,6BAA4BD,SAAU,CAAA,EAAA,EAAIE,QAAQ,GAAI,CAAA,CAAA,EAAGA,QAAS,CAAC,CAAA,GAAG,EAAG,CAAC,CAAA,CAAA;IAC3E,KAAK,CAACC,OAAO,CAAC,CAAA;AAChB,GAAA;AACF;;;;"}