Skip to main content
zerotal

Documentation


Documentation / @zerotal/cache / index / CacheDeserializationError

Class: CacheDeserializationError

Defined in: cache/src/errors.ts:23

Thrown when a cached value cannot be JSON-parsed on read.

Extends

Constructors

Constructor

new CacheDeserializationError(key, cause): CacheDeserializationError

Defined in: cache/src/errors.ts:24

Parameters

key

string

cause

unknown

Returns

CacheDeserializationError

Overrides

CacheError.constructor

Properties

code

readonly code: string

Defined in: core/src/errors/ZerotalError.ts:18

Inherited from

CacheError.code


status

readonly status: number = 500

Defined in: core/src/errors/ZerotalError.ts:19

Inherited from

CacheError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: core/src/errors/ZerotalError.ts:20

Inherited from

CacheError.context