AdminUtils::Error
Variant 488 v411pallet_admin_utils::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 (14)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | SubnetDoesNotExist | none | The subnet does not exist, check the netuid parameter |
| 1 | MaxValidatorsLargerThanMaxUIds | none | The maximum number of subnet validators must be less than the maximum number of allowed UIDs in the subnet. |
| 2 | MaxAllowedUIdsLessThanCurrentUIds | none | The maximum number of subnet validators must be more than the current number of UIDs already in the subnet. |
| 3 | BondsMovingAverageMaxReached | none | The maximum value for bonds moving average is reached |
| 4 | NegativeSigmoidSteepness | none | Only root can set negative sigmoid steepness values |
| 5 | ValueNotInBounds | none | Value not in allowed bounds. |
| 6 | MinAllowedUidsGreaterThanCurrentUids | none | The minimum allowed UIDs must be less than the current number of UIDs in the subnet. |
| 7 | MinAllowedUidsGreaterThanMaxAllowedUids | none | The minimum allowed UIDs must be less than the maximum allowed UIDs. |
| 8 | MaxAllowedUidsLessThanMinAllowedUids | none | The maximum allowed UIDs must be greater than the minimum allowed UIDs. |
| 9 | MaxAllowedUidsGreaterThanDefaultMaxAllowedUids | none | The maximum allowed UIDs must be less than the default maximum allowed UIDs. |
| 10 | InvalidValue | none | Bad parameter value |
| 11 | NotPermittedOnRootSubnet | none | Operation is not permitted on the root network. |
| 12 | POWRegistrationDisabled | none | POW Registration has been deprecated |
| 13 | Deprecated | none | Call is deprecated |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 14 possible variants.
- Size
- variable (1+ bytes)
Examples
SubnetDoesNotExist
0x0000 Variant index 0 = SubnetDoesNotExistMaxValidatorsLargerThanMaxUIds
0x0101 Variant index 1 = MaxValidatorsLargerThanMaxUIdsMaxAllowedUIdsLessThanCurrentUIds
0x0202 Variant index 2 = MaxAllowedUIdsLessThanCurrentUIdsCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode AdminUtils::Error — variant "SubnetDoesNotExist"
const value = registry.createType("AdminUtils::Error", "SubnetDoesNotExist");
console.log("Hex:", value.toHex());Type Parameters
T
Also See
Type Information
- Type ID
- 488
- Kind
- Variant
- Path
- pallet_admin_utils::pallet::Error
- Runtime
- v411