AdminUtils::Error
Variant 508 v393pallet_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 (11)
| 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 |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 11 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
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
- 508
- Kind
- Variant
- Path
- pallet_admin_utils::pallet::Error
- Runtime
- v393