Skip to main content

ErrorHandlingOptions

FitFileViewer - API Documentation v29.9.0


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

Interface: ErrorHandlingOptions

Defined in: utils/errors/errorHandling.js:23

Properties​

failSafe?​

optional failSafe: boolean

Defined in: utils/errors/errorHandling.js:25

Whether to fail safely (return fallback) or throw. Default is false


fallback?​

optional fallback: any

Defined in: utils/errors/errorHandling.js:27

Fallback value for fail-safe mode. Default is null


logError?​

optional logError: boolean

Defined in: utils/errors/errorHandling.js:29

Whether to log the error. Default is true


logLevel?​

optional logLevel: string

Defined in: utils/errors/errorHandling.js:31

Log level (debug, info, warn, error). Default is "error"


notify?​

optional notify: boolean

Defined in: utils/errors/errorHandling.js:33

Whether to show user notification. Default is false


notificationType?​

optional notificationType: string

Defined in: utils/errors/errorHandling.js:35

Notification type (error, warning, info). Default is "error"