Skip to content

encodeErrorDetails

function encodeErrorDetails(details): string | null;

Defined in: src/error-model.ts:325

Serialize a detail list for vgi_rpc.error_details, enforcing the rules.

Returns null – meaning omit the key – for an empty list, for a list breaking a catalog rule, and for one whose serialized form exceeds MAX_ERROR_DETAILS_BYTES. Dropped whole, never trimmed.

Parameter Type
details readonly unknown[]

string | null