Scheduler::Error

Variant 489 v393

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

IndexNameFieldsDocs
0FailedToSchedulenoneFailed to schedule a call
1NotFoundnoneCannot find the scheduled call.
2TargetBlockNumberInPastnoneGiven target block number is in the past.
3RescheduleNoChangenoneReschedule failed because it does not change scheduled time.
4NamednoneAttempt 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
0x00
00 Variant index 0 = FailedToSchedule
NotFound
0x01
01 Variant index 1 = NotFound
TargetBlockNumberInPast
0x02
02 Variant index 2 = TargetBlockNumberInPast

Code 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

Referenced By (21)

and 1 more...

Also See

Type Information

Type ID
489
Kind
Variant
Path
pallet_scheduler::pallet::Error
Runtime
v393