System::Error
Variant 122 v393frame_system::pallet::Error
Error for the System pallet
About This Type
Error enum for the Error pallet.
Contains all error types that the Error pallet can return when a call fails.
Variants (9)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | InvalidSpecName | none | The name of specification does not match between the current runtime and the new runtime. |
| 1 | SpecVersionNeedsToIncrease | none | The specification version is not allowed to decrease between the current runtime and the new runtime. |
| 2 | FailedToExtractRuntimeVersion | none | Failed to extract the runtime version from the new runtime. Either calling `Core_version` or decoding `RuntimeVersion` failed. |
| 3 | NonDefaultComposite | none | Suicide called when the account has non-default composite data. |
| 4 | NonZeroRefCount | none | There is a non-zero reference count preventing the account from being purged. |
| 5 | CallFiltered | none | The origin filter prevent the call to be dispatched. |
| 6 | MultiBlockMigrationsOngoing | none | A multi-block migration is ongoing and prevents the current code from being replaced. |
| 7 | NothingAuthorized | none | No upgrade authorized. |
| 8 | Unauthorized | none | The submitted code is not authorized. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 9 possible variants.
- Size
- variable (1+ bytes)
Examples
InvalidSpecName
0x0000 Variant index 0 = InvalidSpecNameSpecVersionNeedsToIncrease
0x0101 Variant index 1 = SpecVersionNeedsToIncreaseFailedToExtractRuntimeVersion
0x0202 Variant index 2 = FailedToExtractRuntimeVersionCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode System::Error — variant "InvalidSpecName"
const value = registry.createType("System::Error", "InvalidSpecName");
console.log("Hex:", value.toHex());Type Parameters
T
Referenced By (21)
#726 RuntimeError via System#726 RuntimeError via Grandpa#726 RuntimeError via Balances#726 RuntimeError via SubtensorModule#726 RuntimeError via Utility#726 RuntimeError via Sudo#726 RuntimeError via Multisig#726 RuntimeError via Preimage#726 RuntimeError via Scheduler#726 RuntimeError via Proxy#726 RuntimeError via Registry#726 RuntimeError via Commitments#726 RuntimeError via AdminUtils#726 RuntimeError via SafeMode#726 RuntimeError via Ethereum#726 RuntimeError via EVM#726 RuntimeError via Drand#726 RuntimeError via Crowdloan#726 RuntimeError via Swap#726 RuntimeError via Contracts
and 1 more...
Also See
Type Information
- Type ID
- 122
- Kind
- Variant
- Path
- frame_system::pallet::Error
- Runtime
- v393