Skip to content

API reference / @jsprismarine/errors / leveldb

leveldb ​

Classes ​

Variables ​

LeveldbErrors ​

const LeveldbErrors: Readonly<{ BlockCacheSizeMustBeNonNegative: typeof BlockCacheSizeMustBeNonNegative; BlockChecksumMismatch: typeof BlockChecksumMismatch; BlockRestartCountTooLarge: typeof BlockRestartCountTooLarge; BlockTooShort: typeof BlockTooShort; CannotAddToFinishedBlock: typeof CannotAddToFinishedBlock; CommitInProgress: typeof CommitInProgress; CurrentIsEmpty: typeof CurrentIsEmpty; CurrentNamesMissingManifest: typeof CurrentNamesMissingManifest; DatabaseAlreadyExists: typeof DatabaseAlreadyExists; DatabaseIsClosed: typeof DatabaseIsClosed; DatabaseIsReadOnly: typeof DatabaseIsReadOnly; DatabaseLocked: typeof DatabaseLocked; DatabaseLockedByRunningProcess: typeof DatabaseLockedByRunningProcess; EmbeddedTableWorkerOutsideExecutable: typeof EmbeddedTableWorkerOutsideExecutable; EntryRunsPastBlock: typeof EntryRunsPastBlock; EntrySharesTooManyKeyBytes: typeof EntrySharesTooManyKeyBytes; EntryVarintRunsPastBlock: typeof EntryVarintRunsPastBlock; EntryVarintUnterminated: typeof EntryVarintUnterminated; FileIsNotRegular: typeof FileIsNotRegular; FileIsSymbolicLink: typeof FileIsSymbolicLink; FilterBlockOffsetsOutOfOrder: typeof FilterBlockOffsetsOutOfOrder; FlushRefusedAfterManifestFailure: typeof FlushRefusedAfterManifestFailure; FooterHandlesTooLarge: typeof FooterHandlesTooLarge; FooterWrongSize: typeof FooterWrongSize; InternalKeyTooShort: typeof InternalKeyTooShort; InvalidBloomFilterBitsPerKey: typeof InvalidBloomFilterBitsPerKey; LogAppendInProgress: typeof LogAppendInProgress; LogDamaged: typeof LogDamaged; LogFailed: typeof LogFailed; ManifestLevelOutOfRange: typeof ManifestLevelOutOfRange; ManifestNeverNamesComparator: typeof ManifestNeverNamesComparator; ManifestRecordHasUnknownTag: typeof ManifestRecordHasUnknownTag; NoDatabase: typeof NoDatabase; NotLeveldbTable: typeof NotLeveldbTable; OverlappingLevelFiles: typeof OverlappingLevelFiles; ReadOutsideTable: typeof ReadOutsideTable; RecordTruncated: typeof RecordTruncated; RestartKeyIsMalformed: typeof RestartKeyIsMalformed; SeekOutOfRange: typeof SeekOutOfRange; ShortRead: typeof ShortRead; SnappyCompressionUnsupported: typeof SnappyCompressionUnsupported; SnappyCopyOffsetOutOfRange: typeof SnappyCopyOffsetOutOfRange; SnappyCopyPastDeclaredLength: typeof SnappyCopyPastDeclaredLength; SnappyLengthMismatch: typeof SnappyLengthMismatch; SnappyLengthPrefixUnterminated: typeof SnappyLengthPrefixUnterminated; SnappyLiteralPastDeclaredLength: typeof SnappyLiteralPastDeclaredLength; SnappyTruncatedFourByteCopy: typeof SnappyTruncatedFourByteCopy; SnappyTruncatedLengthPrefix: typeof SnappyTruncatedLengthPrefix; SnappyTruncatedLiteral: typeof SnappyTruncatedLiteral; SnappyTruncatedLiteralLength: typeof SnappyTruncatedLiteralLength; SnappyTruncatedOneByteCopy: typeof SnappyTruncatedOneByteCopy; SnappyTruncatedTwoByteCopy: typeof SnappyTruncatedTwoByteCopy; TableShorterThanFooter: typeof TableShorterThanFooter; TableWorkerAnsweredCompactionWithFlush: typeof TableWorkerAnsweredCompactionWithFlush; TableWorkerAnsweredFlushWithCompaction: typeof TableWorkerAnsweredFlushWithCompaction; TableWorkerBusy: typeof TableWorkerBusy; TableWorkerExited: typeof TableWorkerExited; TableWorkerFailed: typeof TableWorkerFailed; TableWorkerOutsideWorkerThread: typeof TableWorkerOutsideWorkerThread; UnknownBlockCompressionType: typeof UnknownBlockCompressionType; UnknownComparator: typeof UnknownComparator; UnknownInternalKeyType: typeof UnknownInternalKeyType; UnknownWriteBatchOperation: typeof UnknownWriteBatchOperation; UnreadableBlockCompression: typeof UnreadableBlockCompression; Varint32Unterminated: typeof Varint32Unterminated; Varint64Unterminated: typeof Varint64Unterminated; WriteBatchTooShort: typeof WriteBatchTooShort; WritesRefusedAfterCommitFailure: typeof WritesRefusedAfterCommitFailure; WritesRefusedAfterManifestFailure: typeof WritesRefusedAfterManifestFailure; }>

Defined in: packages/errors/src/leveldb.ts:2220

The errors @jsprismarine/leveldb throws.