Function: setDefaultOnRelationsCacheError()
ts
function setDefaultOnRelationsCacheError(
handler: RelationsCacheErrorHandler | null,
): void;Registers (or clears) the process-wide default relation-cache error handler.
The host application calls this once at boot. Passing null clears the default (used by tests). Models without their own onRelationsCacheError fall back to this handler, and absent a default the built-in best-effort log is used — so registering nothing is a valid (logged) configuration.
Parameters
| Parameter | Type | Description |
|---|---|---|
handler | | RelationsCacheErrorHandler | null | The default handler, or null to clear it. |
Returns
void