Since: 0.9.4

error

Description

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.

error.net

Types

Action<Error>.net
function(error)JavaScript

Parameters

ParametersTypeSummary
detailsAllErrorThe object containing the error details.

Examples

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