MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / onError

Method onError

packages/alphatab/src/AlphaTabApiBase.ts:3679–3686  ·  view source on GitHub ↗

* @internal

(error: Error)

Source from the content-addressed store, hash-verified

3677 * @internal
3678 */
3679 public onError(error: Error): void {
3680 if (this._isDestroyed) {
3681 return;
3682 }
3683 Logger.error('API', 'An unexpected error occurred', error);
3684 (this.error as EventEmitterOfT<Error>).trigger(error);
3685 this.uiFacade.triggerEvent(this.container, 'error', error);
3686 }
3687
3688 /**
3689 * This event is fired when all required data for playback is loaded and ready.

Callers 7

_setupPlayerWrapperMethod · 0.95
loadMethod · 0.95
renderTracksMethod · 0.95
texMethod · 0.95
loadSoundFontMethod · 0.80
initialRenderMethod · 0.80

Calls 3

errorMethod · 0.65
triggerEventMethod · 0.65
triggerMethod · 0.45

Tested by

no test coverage detected