System::Error
Variant 133 v411frame_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
Also See
Type Information
- Type ID
- 133
- Kind
- Variant
- Path
- frame_system::pallet::Error
- Runtime
- v411