Registry::Error
Variant 480 v411pallet_registry::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 (3)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | CannotRegister | none | Account attempted to register an identity but does not meet the requirements. |
| 1 | TooManyFieldsInIdentityInfo | none | Account passed too many additional fields to their identity |
| 2 | NotRegistered | none | Account doesn't have a registered identity |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 3 possible variants.
- Size
- variable (1+ bytes)
Examples
CannotRegister
0x0000 Variant index 0 = CannotRegisterTooManyFieldsInIdentityInfo
0x0101 Variant index 1 = TooManyFieldsInIdentityInfoNotRegistered
0x0202 Variant index 2 = NotRegisteredCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Registry::Error — variant "CannotRegister"
const value = registry.createType("Registry::Error", "CannotRegister");
console.log("Hex:", value.toHex());Type Parameters
T
Also See
Type Information
- Type ID
- 480
- Kind
- Variant
- Path
- pallet_registry::pallet::Error
- Runtime
- v411