Error Handling
This library throws MusicError exception.
import * as Core from "web-music-score/core";
try {
// Do your music stuff here.
}
catch (e) {
if(e instanceof Core.MusicError) {
// There was a music error.
}
}
This library throws MusicError exception.
import * as Core from "web-music-score/core";
try {
// Do your music stuff here.
}
catch (e) {
if(e instanceof Core.MusicError) {
// There was a music error.
}
}