# @jsprismarine/prismarine errors

`@jsprismarine/prismarine` throws many errors, so its catalog is split into modules, and each module's errors have a page of their own. [The error reference](https://jsprismarine.dev/errors/index.md) explains how to read an entry.


## Groups

Catch one of these classes to handle every error that extends it.

| Class                       | What its errors mean                                                                                                                                                                                                                                                           |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `AddonIntegrityError`       | Error thrown when an addon's download or folder is not what its lock or source says it is.                                                                                                                                                                                     |
| `LoggedFieldError`          | A logged value had a shape its field never holds.                                                                                                                                                                                                                              |
| `RegistryBundleFormatError` | Raised when a buffer handed to `readRegistryBundle` is not a bundle this build reads.                                                                                                                                                                                          |
| `ConfigSyntaxError`         | Raised when a config file cannot be read as JSON. Thrown rather than swallowed on purpose. Treating a file with a typo in it as empty and then writing the defaults back is how a server used to erase its own config; refusing to start keeps the file for the person to fix. |
| `ChangeLogError`            | A change log was used out of order, such as appending to a tick that is already sealed.                                                                                                                                                                                        |

## Modules

| Page                                   | Catalog                      |
| -------------------------------------- | ---------------------------- |
| [addon](https://jsprismarine.dev/errors/prismarine/addon.md)           | `PrismarineAddonErrors`      |
| [command](https://jsprismarine.dev/errors/prismarine/command.md)       | `PrismarineCommandErrors`    |
| [content](https://jsprismarine.dev/errors/prismarine/content.md)       | `PrismarineContentErrors`    |
| [entity](https://jsprismarine.dev/errors/prismarine/entity.md)         | `PrismarineEntityErrors`     |
| [generation](https://jsprismarine.dev/errors/prismarine/generation.md) | `PrismarineGenerationErrors` |
| [input](https://jsprismarine.dev/errors/prismarine/input.md)           | `PrismarineInputErrors`      |
| [network](https://jsprismarine.dev/errors/prismarine/network.md)       | `PrismarineNetworkErrors`    |
| [server](https://jsprismarine.dev/errors/prismarine/server.md)         | `PrismarineServerErrors`     |
| [stats](https://jsprismarine.dev/errors/prismarine/stats.md)           | `PrismarineStatsErrors`      |
| [world](https://jsprismarine.dev/errors/prismarine/world.md)           | `PrismarineWorldErrors`      |

