SchedulerError
Defined in: src/SystemMessages.ts:226
A task handed to the system Scheduler threw, and nothing above it was
going to hear about it.
The twin of DispatcherError, and deliberately not an
ActorLifecycleEvent for the same reason: a scheduled function
belongs to no cell, so there is no actor whose life this is a transition
in. Nothing is dropped by carrying only the cause — the two entry
points that can produce this (scheduleOnceFunction,
scheduleAtFixedRateFunction) take a bare closure, so the scheduler never
held a name for the thing that failed, and a system has exactly one
scheduler for a report to be about.
Supervision structurally cannot see this: the task runs inside a
setTimeout / setInterval callback with no cell and no parent above it,
which is why it needed a channel instead of a console line (#678). The
message-delivery forms — scheduleOnce / scheduleAtFixedRate — do not
publish here: those tell a target, and a throw inside the target’s
handler is the parent’s strategy to deal with.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SchedulerError(
cause):SchedulerError
Defined in: src/SystemMessages.ts:227
Parameters
Section titled “Parameters”Error
The failure, normalised to an Error even when a non-Error was thrown.
Returns
Section titled “Returns”SchedulerError
Properties
Section titled “Properties”
readonlycause:Error
Defined in: src/SystemMessages.ts:229
The failure, normalised to an Error even when a non-Error was thrown.
Methods
Section titled “Methods”toString()
Section titled “toString()”toString():
string
Defined in: src/SystemMessages.ts:231
Returns
Section titled “Returns”string
