Type Alias: JsonOutputErrorOptions
Options for JsonOutputError.
Signature
ts
export type JsonOutputErrorOptions = { code: JsonOutputErrorCode; values?: Record<string, unknown>; cause?: unknown }Properties
| Name | Type | Description |
|---|---|---|
cause (optional) | unknown | Underlying cause, such as the error of JSON.stringify. |
code | JsonOutputErrorCode | The code of the error, which is also the resource key of its message. |
values (optional) | Record<string, unknown> | Values used when localizing the message. |
