SafeMode::Error
Variant 490 v411pallet_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
Also See
Type Information
- Type ID
- 490
- Kind
- Variant
- Path
- pallet_safe_mode::pallet::Error
- Runtime
- v411