All error contexts · Handling errors
Source-derived code definitions. Messages and metadata can contain runtime values; branch on the code, not on message text. See the source definition for constructors and diagnostic fields.
| Code | Condition | Source |
|---|---|---|
STAS_001 |
INVALID_ASSET — The supplied code/issuer cannot form a native SDK Asset. |
Definition |
STAS_002 |
MISSING_RPC_URL — Neither a native RPC server nor a configured URL was supplied. |
Definition |
STAS_003 |
INVALID_RPC — The configured RPC endpoint cannot construct a native SDK server. |
Definition |
STAS_004 |
NATIVE_TRUSTLINE — Native XLM has no trustline to create, adjust, or remove. |
Definition |
STAS_005 |
CHANGE_TRUST_FAILED — The SDK rejected arguments while constructing a trustline operation. |
Definition |
STAS_006 |
TRANSFER_FAILED — The SDK rejected arguments while constructing a payment operation. |
Definition |
STAS_007 |
NATIVE_TRUSTLINE_FLAGS — Native XLM has no issuer-managed trustline flags. |
Definition |
STAS_008 |
TRUSTLINE_FLAGS_FAILED — The SDK rejected arguments while constructing a trustline-flags operation. |
Definition |
STAS_009 |
NATIVE_CLAWBACK — Native XLM cannot be clawed back by an issuer. |
Definition |
STAS_010 |
CLAWBACK_FAILED — The SDK rejected arguments while constructing a clawback operation. |
Definition |
STAS_011 |
READ_ISSUER_FAILED — A non-Colibri RPC failure prevented reading the issuer account. |
Definition |
STAS_012 |
READ_TRUSTLINE_FAILED — A non-Colibri RPC failure prevented reading the holder's trustline. |
Definition |
STAS_013 |
NATIVE_ASSET_CODE_MISMATCH — A native issuer marker was paired with a code other than XLM. |
Definition |
STAS_014 |
INVALID_CANONICAL_ASSET — The supplied string is not an exact SEP-11 asset identity. |
Definition |
STAS_015 |
ISSUER_BALANCE_UNDEFINED — An issuer has no finite native trustline balance of its own asset. |
Definition |
STAS_016 |
BALANCE_TRUSTLINE_MISSING — A requested balance cannot be read because no trustline exists. |
Definition |
STAS_017 |
READ_BALANCE_FAILED — A transport failure prevented reading the native asset balance. |
Definition |
STAS_018 |
SAC_BINDING_FAILED — The associated Stellar Asset Contract could not be bound. |
Definition |
STAS_019 |
NATIVE_MINT — Native XLM cannot be minted by a user account. |
Definition |
STAS_020 |
NATIVE_BURN — Native XLM cannot be burned by paying an issuer. |
Definition |
STAS_021 |
NATIVE_AUTHORIZATION — Native XLM has no issuer-managed authorization. |
Definition |
STAS_022 |
AUTHORIZATION_TRUSTLINE_MISSING — Revocation cannot determine the current authorization without a trustline. |
Definition |
STAS_023 |
CREATE_CLAIMABLE_BALANCE_FAILED — The SDK rejected the asset's claimable-balance construction arguments. |
Definition |