TransactionalError
Variant 30 v393sp_runtime::TransactionalError
About This Type
Error from transactional storage operations.
Returned when transactional storage layers reach their limit or are used incorrectly. Rare in practice; mainly relevant to runtime developers.
Variants (2)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | LimitReached | none | |
| 1 | NoLayer | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 2 possible variants.
- Size
- variable (1+ bytes)
Examples
LimitReached
0x0000 Variant index 0 = LimitReachedNoLayer
0x0101 Variant index 1 = NoLayerCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode TransactionalError — variant "LimitReached"
const value = registry.createType("TransactionalError", "LimitReached");
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 30
- Kind
- Variant
- Path
- sp_runtime::TransactionalError
- Runtime
- v393