ErrorManager

How to get errorManager

import errorManager from 'fontoxml-errors/src/errorManager.js'

Type: Class

Allows applications to be notified when errors occur.

Methods

Name Description
addFatalErrorCallback

Register a callback that will be called if a fatal error occurs.


  Arguments
# Name Type Description
1. callback ErrorCallback
  Returns

Type: Function

call to remove the callback

addNonFatalErrorCallback

Register a callback that will be called if a non-fatal error occurs.


  Arguments
# Name Type Description
1. callback ErrorCallback
  Returns

Type: Function

call to remove the callback

Was this page helpful?