Aller au contenu
Français

StartupFailedReason

Ce contenu n’est pas encore disponible dans votre langue.

Defined in: src/CoordinatedStartup.ts:31

The reason a coordinated-shutdown run carries when the system goes down because its startup failed.

A shutdown task can tell it apart from a signal or a terminate() and read what failed — one that would flush a cache startup never filled, or report the failure somewhere the log does not reach, has a use for both.

new StartupFailedReason(phase, task, cause): StartupFailedReason

Defined in: src/CoordinatedStartup.ts:34

string

The phase whose task failed.

string

The task that failed.

unknown

What the task threw or rejected with, or the error its phase’s budget ran out with.

StartupFailedReason

Reason.constructor

readonly cause: unknown

Defined in: src/CoordinatedStartup.ts:40

What the task threw or rejected with, or the error its phase’s budget ran out with.


readonly name: "StartupFailedReason" = 'StartupFailedReason'

Defined in: src/CoordinatedStartup.ts:32

Reason.name


readonly phase: string

Defined in: src/CoordinatedStartup.ts:36

The phase whose task failed.


readonly task: string

Defined in: src/CoordinatedStartup.ts:38

The task that failed.

toString(): string

Defined in: src/CoordinatedStartup.ts:45

string

Reason.toString