SafeMode::Error
Variant 510 v393pallet_safe_mode::pallet::Error
The `Error` enum of this 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 (7)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Entered | none | The safe-mode is (already or still) entered. |
| 1 | Exited | none | The safe-mode is (already or still) exited. |
| 2 | NotConfigured | none | This functionality of the pallet is disabled by the configuration. |
| 3 | NoDeposit | none | There is no balance reserved. |
| 4 | AlreadyDeposited | none | The account already has a deposit reserved and can therefore not enter or extend again. |
| 5 | CannotReleaseYet | none | This deposit cannot be released yet. |
| 6 | CurrencyError | none | An error from the underlying `Currency`. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 7 possible variants.
- Size
- variable (1+ bytes)
Examples
Entered
0x0000 Variant index 0 = EnteredExited
0x0101 Variant index 1 = ExitedNotConfigured
0x0202 Variant index 2 = NotConfiguredCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode SafeMode::Error — variant "Entered"
const value = registry.createType("SafeMode::Error", "Entered");
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
- 510
- Kind
- Variant
- Path
- pallet_safe_mode::pallet::Error
- Runtime
- v393