ErrorManager

How to get ErrorManager

ES2015+:

import ErrorManager from 'fontoxml-errors/errorManager'

ES5:

define([
	'fontoxml-errors/errorManager'
], function (
	ErrorManager
) {
});

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 Function
  Arguments
# Name Type Description
1. ErrorCategory
2. Error
3. ErrorData
  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 Function
  Arguments
# Name Type Description
1. ErrorCategory
2. Error
3. ErrorData
  Returns

Type: Function

call to remove the callback