Skip to content

@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 explains how to read an entry.

Groups ​

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

ClassWhat its errors mean
AddonIntegrityErrorError thrown when an addon's download or folder is not what its lock or source says it is.
LoggedFieldErrorA logged value had a shape its field never holds.
RegistryBundleFormatErrorRaised when a buffer handed to readRegistryBundle is not a bundle this build reads.
ConfigSyntaxErrorRaised 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.
ChangeLogErrorA change log was used out of order, such as appending to a tick that is already sealed.

Modules ​

PageCatalog
addonPrismarineAddonErrors
commandPrismarineCommandErrors
contentPrismarineContentErrors
entityPrismarineEntityErrors
generationPrismarineGenerationErrors
inputPrismarineInputErrors
networkPrismarineNetworkErrors
serverPrismarineServerErrors
statsPrismarineStatsErrors
worldPrismarineWorldErrors