API reference / @jsprismarine/errors / leveldb / CorruptionError
Abstract Class: CorruptionError
Defined in: packages/errors/src/leveldb.ts:11
A database we could not fully parse. Always fatal: there is no repair path here, and guessing at a half-understood database is how a world gets silently mangled. Open it in the game, which has one, and let it rewrite the files.
Extends
Constructors
Constructor
new CorruptionError(
message?):CorruptionError
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1080
Parameters
message?
string
Returns
CorruptionError
Inherited from
Constructor
new CorruptionError(
message?,options?):CorruptionError
Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1080
Parameters
message?
string
options?
ErrorOptions
Returns
CorruptionError
Inherited from
Properties
code
abstractreadonlycode:string
Defined in: packages/errors/src/JSPrismarineError.ts:36
The catalog code, such as LEVELDB_DATABASE_LOCKED. It never changes between releases.
Inherited from
docs
abstractreadonlydocs:string
Defined in: packages/errors/src/JSPrismarineError.ts:37
The address of this error's entry in the error reference.
Inherited from
name
name:
string='CorruptionError'
Defined in: packages/errors/src/leveldb.ts:12
Overrides
JSPrismarineError.name
params
abstractreadonlyparams:Readonly<Record<string,unknown>>
Defined in: packages/errors/src/JSPrismarineError.ts:38
The placeholder values the message was built from.
Inherited from
Accessors
[cataloged]
Get Signature
get [cataloged]():
true
Defined in: packages/errors/src/JSPrismarineError.ts:40
Returns
true