Appearance
Function: createMapstedError()
ts
function createMapstedError(
code,
details?,
strict?): MapstedError;Factory function for creating MapstedError instances.
Parameters
| Parameter | Type | Description |
|---|---|---|
code | string | A valid MAPSTED-XXXX code from the error registry. |
details? | Record<string, unknown> | Optional key/value context interpolated into the message. |
strict? | boolean | Controls redactInProduction behavior. When true, production-redacted params are shown in the message. Default false (redact in message, keep in details). |