Skip to main content

createErrorHandler

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/errors/errorHandling / createErrorHandler

Function: createErrorHandler()

createErrorHandler<Fallback>(options?: ErrorHandlingOptions<Fallback>): (error: unknown, context?: ErrorContext) => Fallback

Defined in: utils/errors/errorHandling.ts:223

Create a standardized error handler for strict or fail-safe execution paths.

Type Parameters​

Fallback​

Fallback = null

Parameters​

options?​

ErrorHandlingOptions<Fallback> = {}

Returns​

(error: unknown, context?: ErrorContext) => Fallback