Scheduler::Error
Variant 469 v411pallet_scheduler::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 (5)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | FailedToSchedule | none | Failed to schedule a call |
| 1 | NotFound | none | Cannot find the scheduled call. |
| 2 | TargetBlockNumberInPast | none | Given target block number is in the past. |
| 3 | RescheduleNoChange | none | Reschedule failed because it does not change scheduled time. |
| 4 | Named | none | Attempt to use a non-named function on a named task. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 5 possible variants.
- Size
- variable (1+ bytes)
Examples
FailedToSchedule
0x0000 Variant index 0 = FailedToScheduleNotFound
0x0101 Variant index 1 = NotFoundTargetBlockNumberInPast
0x0202 Variant index 2 = TargetBlockNumberInPastCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Scheduler::Error — variant "FailedToSchedule"
const value = registry.createType("Scheduler::Error", "FailedToSchedule");
console.log("Hex:", value.toHex());Type Parameters
T
Also See
Type Information
- Type ID
- 469
- Kind
- Variant
- Path
- pallet_scheduler::pallet::Error
- Runtime
- v411