---
url: https://masyaka.github.io/injecute/errors/disposed.md
description: The container is disposed
---

# `INJECUTE_DISPOSED`

**The container is disposed.**

## How to fix it

Create a new container (or fork) instead of using one after dispose().

## Handling it in code

```ts
import { InjecuteError } from 'injecute';

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

[All error codes](./index.md)
