JS Kit SDK API Reference / Errors
Errors
Error classes and stable error categories emitted by SDK operations.
Enumerations
| Enumeration | Description |
|---|---|
| ErrorType | Stable error codes emitted by SNS SDK operations. |
Classes
| Class | Description |
|---|---|
| AccountDoesNotExistError | Thrown when a required on-chain account does not exist. |
| CouldNotFindNftOwnerError | Thrown when the owner of an SNS NFT cannot be determined. |
| CouldNotFindSrsOwnerError | Thrown when a Solana Registration Service domain owner cannot be resolved. |
| DomainDoesNotExistError | Thrown when a requested SNS domain account does not exist. |
| DomainExpiredError | Thrown when a Solana Registration Service domain has expired. |
| InvalidAAAARecordError | Thrown when an IPv6 record value is invalid. |
| InvalidARecordError | Thrown when an IPv4 record value is invalid. |
| InvalidDomainError | Thrown when a domain name is malformed or invalid. |
| InvalidEvmAddressError | Thrown when an EVM address is invalid for a record operation. |
| InvalidInjectiveAddressError | Thrown when an Injective address is invalid for a record operation. |
| InvalidInputError | Thrown when a general SDK input contract is not met. |
| InvalidParentError | Thrown when a required parent domain account cannot be resolved. |
| InvalidRecordDataError | Thrown when record content fails format validation. |
| InvalidRecordInputError | Thrown when record creation or update input is incomplete or invalid. |
| InvalidRoaError | Thrown when a Right of Association proof is invalid. |
| InvalidSerializedDataError | Thrown when serialized account or record data is inconsistent. |
| InvalidSubdomainError | Thrown when a subdomain name is malformed or unsupported. |
| InvalidValidationError | Thrown when an unsupported record validation mode is encountered. |
| MissingVerifierError | Thrown when required record verification data is missing. |
| NftAccountNotFoundError | Thrown when an expected SNS NFT account cannot be found. |
| NoAccountDataError | Thrown when an existing account has no readable data. |
| NoRecordDataError | Thrown when a requested record account has no readable data. |
| PdaOwnerNotAllowedError | Thrown when a program-derived address is not an allowed owner. |
| PrimaryDomainNotFoundError | Thrown when an address has no configured primary domain. |
| PythFeedNotFoundError | Thrown when no Pyth price feed is configured for a mint. |
| RecordMalformedError | Thrown when serialized record data cannot be decoded safely. |
| SNSError | Base error thrown by SNS SDK operations. Inspect type for a stable error code. |
| SnsSolResolutionMismatchError | Thrown when .sns and .sol resolve the same domain to different addresses. |
| UnsupportedTldError | Thrown when a domain does not use a supported top-level domain. |