Skip to main content

Function: getUnknownErrorMessage()

getUnknownErrorMessage(error: unknown, fallback?: string): string

Defined in: shared/utils/errorCatalog.ts:453

Derives a user-friendly message from an unknown error value.

Parametersโ€‹

errorโ€‹

unknown

fallback?โ€‹

string = ERROR_CATALOG.system.UNKNOWN_ERROR

Returnsโ€‹

string

Remarksโ€‹

This helper replaces the legacy @shared/utils/errorUtils.getErrorMessage implementation so that fallback strings come from the centralized ERROR_CATALOG.