Registry::Error

Variant 500 v393

pallet_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)

IndexNameFieldsDocs
0CannotRegisternoneAccount attempted to register an identity but does not meet the requirements.
1TooManyFieldsInIdentityInfononeAccount passed too many additional fields to their identity
2NotRegisterednoneAccount 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
0x00
00 Variant index 0 = CannotRegister
TooManyFieldsInIdentityInfo
0x01
01 Variant index 1 = TooManyFieldsInIdentityInfo
NotRegistered
0x02
02 Variant index 2 = NotRegistered

Code 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

Referenced By (21)

and 1 more...

Also See

Type Information

Type ID
500
Kind
Variant
Path
pallet_registry::pallet::Error
Runtime
v393