{"version":3,"file":"errors.mjs","sources":["../../src/errors.ts"],"sourcesContent":["import { UmiError } from '@metaplex-foundation/umi';\n\nexport class WalletAdaptersError extends UmiError {\n  readonly name: string = 'WalletAdaptersError';\n\n  constructor(message: string, cause?: Error) {\n    super(message, 'plugin', 'Wallet Adapters', cause);\n  }\n}\n\nexport class UninitializedWalletAdapterError extends WalletAdaptersError {\n  readonly name: string = 'UninitializedWalletAdapterError';\n\n  constructor() {\n    const message =\n      `The current wallet adapter is not initialized. ` +\n      'You likely have selected a wallet adapter but forgot to initialize it. ' +\n      'You may do this by running the following asynchronous method: \"wallet.connect();\".';\n    super(message);\n  }\n}\n\nexport class OperationNotSupportedByWalletAdapterError extends WalletAdaptersError {\n  readonly name: string = 'OperationNotSupportedByWalletAdapterError';\n\n  constructor(operation: string) {\n    const message =\n      `The current wallet adapter does not support the following operation: [${operation}]. ` +\n      'Ensure your wallet is connected using a compatible wallet adapter.';\n    super(message);\n  }\n}\n"],"names":["WalletAdaptersError","UmiError","name","constructor","message","cause","UninitializedWalletAdapterError","OperationNotSupportedByWalletAdapterError","operation"],"mappings":";;AAEO,MAAMA,mBAAmB,SAASC,QAAQ,CAAC;AACvCC,EAAAA,IAAI,GAAW,qBAAqB,CAAA;AAE7CC,EAAAA,WAAW,CAACC,OAAe,EAAEC,KAAa,EAAE;IAC1C,KAAK,CAACD,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAEC,KAAK,CAAC,CAAA;AACpD,GAAA;AACF,CAAA;AAEO,MAAMC,+BAA+B,SAASN,mBAAmB,CAAC;AAC9DE,EAAAA,IAAI,GAAW,iCAAiC,CAAA;AAEzDC,EAAAA,WAAW,GAAG;AACZ,IAAA,MAAMC,OAAO,GACV,CAAA,+CAAA,CAAgD,GACjD,yEAAyE,GACzE,oFAAoF,CAAA;IACtF,KAAK,CAACA,OAAO,CAAC,CAAA;AAChB,GAAA;AACF,CAAA;AAEO,MAAMG,yCAAyC,SAASP,mBAAmB,CAAC;AACxEE,EAAAA,IAAI,GAAW,2CAA2C,CAAA;EAEnEC,WAAW,CAACK,SAAiB,EAAE;AAC7B,IAAA,MAAMJ,OAAO,GACV,CAAA,sEAAA,EAAwEI,SAAU,CAAA,GAAA,CAAI,GACvF,oEAAoE,CAAA;IACtE,KAAK,CAACJ,OAAO,CAAC,CAAA;AAChB,GAAA;AACF;;;;"}