initError() function

Reports that a cached method ran before the cache existed — the service was decorated but start() has not completed, so there is nothing to read or write. The method still executes; it is simply not cached.

Signature:

export declare function initError(logger: ILogger, className: string, methodName: string, decorator: Function): void;

Parameters

Parameter

Type

Description

logger

ILogger

logger to report through

className

string

service class whose cache is missing

methodName

string

cached method that was called too early

decorator

Function

decorator that found the cache absent

Returns:

void

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.