Skip to main content

error

since 0.9.4

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.

errorJavaScript
alphaTab.errorjQuery
alphaTab.errorHTML
Error.net

Types​

Action<Error>.net
function(error)JavaScript

Parameters​

ParametersTypeSummary
detailsAllError

The object containing the error details.

Examples​

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