{"version":3,"file":"errors.mjs","sources":["../../src/errors.ts"],"sourcesContent":["export enum ErrorType {\r\n  SymbolNotFound = \"SymbolNotFound\",\r\n  InvalidSubdomain = \"InvalidSubdomain\",\r\n  PrimaryDomainNotFound = \"PrimaryDomainNotFound\",\r\n  MissingParentOwner = \"MissingParentOwner\",\r\n  U32Overflow = \"U32Overflow\",\r\n  InvalidBufferLength = \"InvalidBufferLength\",\r\n  U64Overflow = \"U64Overflow\",\r\n  NoRecordData = \"NoRecordData\",\r\n  InvalidRecordData = \"InvalidRecordData\",\r\n  UnsupportedRecord = \"UnsupportedRecord\",\r\n  InvalidEvmAddress = \"InvalidEvmAddress\",\r\n  InvalidInjectiveAddress = \"InvalidInjectiveAddress\",\r\n  InvalidARecord = \"InvalidARecord\",\r\n  InvalidAAAARecord = \"InvalidAAAARecord\",\r\n  InvalidRecordInput = \"InvalidRecordInput\",\r\n  InvalidSignature = \"InvalidSignature\",\r\n  AccountDoesNotExist = \"AccountDoesNotExist\",\r\n  MultipleRegistries = \"MultipleRegistries\",\r\n  InvalidReverseTwitter = \"InvalidReverseTwitter\",\r\n  NoAccountData = \"NoAccountData\",\r\n  InvalidInput = \"InvalidInput\",\r\n  InvalidDomain = \"InvalidDomain\",\r\n  InvalidCustomBg = \"InvalidCustomBackground\",\r\n  UnsupportedSignature = \"UnsupportedSignature\",\r\n  RecordDoestNotSupportGuardianSig = \"RecordDoestNotSupportGuardianSig\",\r\n  RecordIsNotSigned = \"RecordIsNotSigned\",\r\n  UnsupportedSignatureType = \"UnsupportedSignatureType\",\r\n  InvalidSolRecordV2 = \"InvalidSolRecordV2\",\r\n  MissingVerifier = \"MissingVerifier\",\r\n  PythFeedNotFound = \"PythFeedNotFound\",\r\n  InvalidRoA = \"InvalidRoA\",\r\n  InvalidPda = \"InvalidPda\",\r\n  InvalidParent = \"InvalidParent\",\r\n  NftAccountNotFound = \"NftRecordNotFound\",\r\n  PdaOwnerNotAllowed = \"PdaOwnerNotAllowed\",\r\n  DomainDoesNotExist = \"DomainDoesNotExist\",\r\n  RecordMalformed = \"RecordMalformed\",\r\n  CouldNotFindNftOwner = \"CouldNotFindNftOwner\",\r\n  InvalidValidation = \"InvalidValidation\",\r\n  InvalidSerializedData = \"InvalidSerializedData\",\r\n}\r\n\r\nexport class SNSError extends Error {\r\n  type: ErrorType;\r\n\r\n  constructor(type: ErrorType, message?: string) {\r\n    super(message);\r\n    this.name = \"SNSError\";\r\n    this.type = type;\r\n\r\n    if ((Error as any).captureStackTrace) {\r\n      (Error as any).captureStackTrace(this, SNSError);\r\n    }\r\n  }\r\n}\r\n\r\nexport class SymbolNotFoundError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.SymbolNotFound, message);\r\n  }\r\n}\r\n\r\nexport class InvalidSubdomainError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidSubdomain, message);\r\n  }\r\n}\r\n\r\nexport class PrimaryDomainNotFoundError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.PrimaryDomainNotFound, message);\r\n  }\r\n}\r\n\r\nexport class MissingParentOwnerError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.MissingParentOwner, message);\r\n  }\r\n}\r\n\r\nexport class U32OverflowError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.U32Overflow, message);\r\n  }\r\n}\r\n\r\nexport class InvalidBufferLengthError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidBufferLength, message);\r\n  }\r\n}\r\n\r\nexport class U64OverflowError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.U64Overflow, message);\r\n  }\r\n}\r\n\r\nexport class NoRecordDataError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.NoRecordData, message);\r\n  }\r\n}\r\n\r\nexport class InvalidRecordDataError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidRecordData, message);\r\n  }\r\n}\r\n\r\nexport class UnsupportedRecordError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.UnsupportedRecord, message);\r\n  }\r\n}\r\n\r\nexport class InvalidEvmAddressError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidEvmAddress, message);\r\n  }\r\n}\r\n\r\nexport class InvalidInjectiveAddressError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidInjectiveAddress, message);\r\n  }\r\n}\r\n\r\nexport class InvalidARecordError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidARecord, message);\r\n  }\r\n}\r\n\r\nexport class InvalidAAAARecordError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidAAAARecord, message);\r\n  }\r\n}\r\n\r\nexport class InvalidRecordInputError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidRecordInput, message);\r\n  }\r\n}\r\n\r\nexport class InvalidSignatureError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidSignature, message);\r\n  }\r\n}\r\n\r\nexport class AccountDoesNotExistError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.AccountDoesNotExist, message);\r\n  }\r\n}\r\n\r\nexport class MultipleRegistriesError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.MultipleRegistries, message);\r\n  }\r\n}\r\nexport class InvalidReverseTwitterError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidReverseTwitter, message);\r\n  }\r\n}\r\n\r\nexport class NoAccountDataError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.NoAccountData, message);\r\n  }\r\n}\r\n\r\nexport class InvalidInputError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidInput, message);\r\n  }\r\n}\r\n\r\nexport class InvalidDomainError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidDomain, message);\r\n  }\r\n}\r\n\r\nexport class InvalidCustomBgError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidCustomBg, message);\r\n  }\r\n}\r\n\r\nexport class UnsupportedSignatureError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.UnsupportedSignature, message);\r\n  }\r\n}\r\n\r\nexport class RecordDoestNotSupportGuardianSigError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.RecordDoestNotSupportGuardianSig, message);\r\n  }\r\n}\r\n\r\nexport class RecordIsNotSignedError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.RecordIsNotSigned, message);\r\n  }\r\n}\r\n\r\nexport class UnsupportedSignatureTypeError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.UnsupportedSignatureType, message);\r\n  }\r\n}\r\n\r\nexport class InvalidSolRecordV2Error extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidSolRecordV2, message);\r\n  }\r\n}\r\n\r\nexport class MissingVerifierError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.MissingVerifier, message);\r\n  }\r\n}\r\n\r\nexport class PythFeedNotFoundError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.PythFeedNotFound, message);\r\n  }\r\n}\r\n\r\nexport class InvalidRoAError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidRoA, message);\r\n  }\r\n}\r\n\r\nexport class InvalidPdaError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidPda, message);\r\n  }\r\n}\r\n\r\nexport class InvalidParentError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidParent, message);\r\n  }\r\n}\r\n\r\nexport class NftAccountNotFoundError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.NftAccountNotFound, message);\r\n  }\r\n}\r\n\r\nexport class PdaOwnerNotAllowedError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.PdaOwnerNotAllowed, message);\r\n  }\r\n}\r\n\r\nexport class DomainDoesNotExistError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.DomainDoesNotExist, message);\r\n  }\r\n}\r\n\r\nexport class RecordMalformedError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.RecordMalformed, message);\r\n  }\r\n}\r\n\r\nexport class CouldNotFindNftOwnerError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.CouldNotFindNftOwner, message);\r\n  }\r\n}\r\n\r\nexport class InvalidValidationError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidValidation, message);\r\n  }\r\n}\r\n\r\nexport class InvalidSerializedDataError extends SNSError {\r\n  constructor(message?: string) {\r\n    super(ErrorType.InvalidSerializedData, message);\r\n  }\r\n}\r\n"],"names":["ErrorType","SNSError","Error","type","constructor","message","super","this","name","captureStackTrace","SymbolNotFoundError","SymbolNotFound","InvalidSubdomainError","InvalidSubdomain","PrimaryDomainNotFoundError","PrimaryDomainNotFound","MissingParentOwnerError","MissingParentOwner","U32OverflowError","U32Overflow","InvalidBufferLengthError","InvalidBufferLength","U64OverflowError","U64Overflow","NoRecordDataError","NoRecordData","InvalidRecordDataError","InvalidRecordData","UnsupportedRecordError","UnsupportedRecord","InvalidEvmAddressError","InvalidEvmAddress","InvalidInjectiveAddressError","InvalidInjectiveAddress","InvalidARecordError","InvalidARecord","InvalidAAAARecordError","InvalidAAAARecord","InvalidRecordInputError","InvalidRecordInput","InvalidSignatureError","InvalidSignature","AccountDoesNotExistError","AccountDoesNotExist","MultipleRegistriesError","MultipleRegistries","InvalidReverseTwitterError","InvalidReverseTwitter","NoAccountDataError","NoAccountData","InvalidInputError","InvalidInput","InvalidDomainError","InvalidDomain","InvalidCustomBgError","InvalidCustomBg","UnsupportedSignatureError","UnsupportedSignature","RecordDoestNotSupportGuardianSigError","RecordDoestNotSupportGuardianSig","RecordIsNotSignedError","RecordIsNotSigned","UnsupportedSignatureTypeError","UnsupportedSignatureType","InvalidSolRecordV2Error","InvalidSolRecordV2","MissingVerifierError","MissingVerifier","PythFeedNotFoundError","PythFeedNotFound","InvalidRoAError","InvalidRoA","InvalidPdaError","InvalidPda","InvalidParentError","InvalidParent","NftAccountNotFoundError","NftAccountNotFound","PdaOwnerNotAllowedError","PdaOwnerNotAllowed","DomainDoesNotExistError","DomainDoesNotExist","RecordMalformedError","RecordMalformed","CouldNotFindNftOwnerError","CouldNotFindNftOwner","InvalidValidationError","InvalidValidation","InvalidSerializedDataError","InvalidSerializedData"],"mappings":"IAAYA,GAAZ,SAAYA,GACVA,EAAA,eAAA,iBACAA,EAAA,iBAAA,mBACAA,EAAA,sBAAA,wBACAA,EAAA,mBAAA,qBACAA,EAAA,YAAA,cACAA,EAAA,oBAAA,sBACAA,EAAA,YAAA,cACAA,EAAA,aAAA,eACAA,EAAA,kBAAA,oBACAA,EAAA,kBAAA,oBACAA,EAAA,kBAAA,oBACAA,EAAA,wBAAA,0BACAA,EAAA,eAAA,iBACAA,EAAA,kBAAA,oBACAA,EAAA,mBAAA,qBACAA,EAAA,iBAAA,mBACAA,EAAA,oBAAA,sBACAA,EAAA,mBAAA,qBACAA,EAAA,sBAAA,wBACAA,EAAA,cAAA,gBACAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,gBAAA,0BACAA,EAAA,qBAAA,uBACAA,EAAA,iCAAA,mCACAA,EAAA,kBAAA,oBACAA,EAAA,yBAAA,2BACAA,EAAA,mBAAA,qBACAA,EAAA,gBAAA,kBACAA,EAAA,iBAAA,mBACAA,EAAA,WAAA,aACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,mBAAA,oBACAA,EAAA,mBAAA,qBACAA,EAAA,mBAAA,qBACAA,EAAA,gBAAA,kBACAA,EAAA,qBAAA,uBACAA,EAAA,kBAAA,oBACAA,EAAA,sBAAA,uBACD,CAzCD,CAAYA,IAAAA,EAyCX,CAAA,IAEK,MAAOC,UAAiBC,MAC5BC,KAEA,WAAAC,CAAYD,EA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