Skip to main content

error

since 0.9.4

Description​

This event is fired when an error within alphatab occurred. This event is fired when an error within alphatab occurred. Use this event as global error handler to show errors to end-users. Due to the asynchronous nature of alphaTab, no call to the API will directly throw an error if it fails. Instead a signal to this error handlers will be sent.

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.error.on((error) {
displayError(error);
});