Skip to main content

JS Kit SDK API Reference / Errors

Errors

Error classes and stable error categories emitted by SDK operations.

Enumerations

EnumerationDescription
ErrorTypeStable error codes emitted by SNS SDK operations.

Classes

ClassDescription
AccountDoesNotExistErrorThrown when a required on-chain account does not exist.
CouldNotFindNftOwnerErrorThrown when the owner of an SNS NFT cannot be determined.
CouldNotFindSrsOwnerErrorThrown when a Solana Registration Service domain owner cannot be resolved.
DomainDoesNotExistErrorThrown when a requested SNS domain account does not exist.
DomainExpiredErrorThrown when a Solana Registration Service domain has expired.
InvalidAAAARecordErrorThrown when an IPv6 record value is invalid.
InvalidARecordErrorThrown when an IPv4 record value is invalid.
InvalidDomainErrorThrown when a domain name is malformed or invalid.
InvalidEvmAddressErrorThrown when an EVM address is invalid for a record operation.
InvalidInjectiveAddressErrorThrown when an Injective address is invalid for a record operation.
InvalidInputErrorThrown when a general SDK input contract is not met.
InvalidParentErrorThrown when a required parent domain account cannot be resolved.
InvalidRecordDataErrorThrown when record content fails format validation.
InvalidRecordInputErrorThrown when record creation or update input is incomplete or invalid.
InvalidRoaErrorThrown when a Right of Association proof is invalid.
InvalidSerializedDataErrorThrown when serialized account or record data is inconsistent.
InvalidSubdomainErrorThrown when a subdomain name is malformed or unsupported.
InvalidValidationErrorThrown when an unsupported record validation mode is encountered.
MissingVerifierErrorThrown when required record verification data is missing.
NftAccountNotFoundErrorThrown when an expected SNS NFT account cannot be found.
NoAccountDataErrorThrown when an existing account has no readable data.
NoRecordDataErrorThrown when a requested record account has no readable data.
PdaOwnerNotAllowedErrorThrown when a program-derived address is not an allowed owner.
PrimaryDomainNotFoundErrorThrown when an address has no configured primary domain.
PythFeedNotFoundErrorThrown when no Pyth price feed is configured for a mint.
RecordMalformedErrorThrown when serialized record data cannot be decoded safely.
SNSErrorBase error thrown by SNS SDK operations. Inspect type for a stable error code.
SnsSolResolutionMismatchErrorThrown when .sns and .sol resolve the same domain to different addresses.
UnsupportedTldErrorThrown when a domain does not use a supported top-level domain.