Skip to main content
zerotal

Documentation


Documentation / @zerotal/cache / index / CacheSerializationError

Class: CacheSerializationError

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

Thrown when a value cannot be JSON-serialized for storage.

Extends

Constructors

Constructor

new CacheSerializationError(key, cause): CacheSerializationError

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

Parameters

key

string

cause

unknown

Returns

CacheSerializationError

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