---
url: https://masyaka.github.io/injecute/errors/lifecycle-stopped.md
description: The lifecycle of this container was stopped
---

# `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](./index.md)
