Skip to content

Documentation / listr2 / ListrErrorTypes

Enumeration: ListrErrorTypes

The actual error type that is collected and to help identify where the error is triggered from.

Enumeration Members

WILL_RETRY

WILL_RETRY: "WILL_RETRY"

Task has failed and will try to retry.

Defined in

packages/listr2/src/constants/listr-error.constants.ts:6


WILL_ROLLBACK

WILL_ROLLBACK: "WILL_ROLLBACK"

Task has failed and will try to rollback.

Defined in

packages/listr2/src/constants/listr-error.constants.ts:8


HAS_FAILED_TO_ROLLBACK

HAS_FAILED_TO_ROLLBACK: "HAS_FAILED_TO_ROLLBACK"

Task has failed, ran the rollback action but the rollback action itself has failed.

Defined in

packages/listr2/src/constants/listr-error.constants.ts:10


HAS_FAILED

HAS_FAILED: "HAS_FAILED"

Task has failed.

Defined in

packages/listr2/src/constants/listr-error.constants.ts:12


HAS_FAILED_WITHOUT_ERROR

HAS_FAILED_WITHOUT_ERROR: "HAS_FAILED_WITHOUT_ERROR"

Task has failed, but exitOnError is set to false, so will ignore this error.

Defined in

packages/listr2/src/constants/listr-error.constants.ts:14