Documents injecute 1.x · Migrating from 0.x
Skip to content

INJECUTE_LIFECYCLE_STOPPED ​

The lifecycle of this container was stopped.

How to fix it ​

A lifecycle runs once per container. To start again, create a new container or an isolated fork.

Handling it in code ​

ts
import { InjecuteError } from 'injecute';

try {
  // ...
} catch (error) {
  if (error instanceof InjecuteError && error.code === 'INJECUTE_LIFECYCLE_STOPPED') {
    // error.message explains what happened; error.path is the resolution chain
  }
}

All error codes

Released under the MIT License.