196 |
} |
} |
197 |
catch (RIFF::Exception e) { |
catch (RIFF::Exception e) { |
198 |
InstrumentStat = -2; |
InstrumentStat = -2; |
199 |
|
StatusChanged(true); |
200 |
String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message; |
String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message; |
201 |
throw Exception(msg); |
throw Exception(msg); |
202 |
} |
} |
203 |
catch (InstrumentManagerException e) { |
catch (InstrumentManagerException e) { |
204 |
InstrumentStat = -3; |
InstrumentStat = -3; |
205 |
|
StatusChanged(true); |
206 |
String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message(); |
String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message(); |
207 |
throw Exception(msg); |
throw Exception(msg); |
208 |
} |
} |
209 |
catch (...) { |
catch (...) { |
210 |
InstrumentStat = -4; |
InstrumentStat = -4; |
211 |
|
StatusChanged(true); |
212 |
throw Exception("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file."); |
throw Exception("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file."); |
213 |
} |
} |
214 |
|
|