For posterity: the alternative to this is to use the ErrorHandler and then do anything with certain errors including custom panels that have flying dragons or whatnot.
The error numbers important to 99% of projects are as follows:
// 0 : Plugin broken
// 9 : Linkfile missing
// 10 : Linkfile path incorrect
// 11 : Illegal Buffer size though this is no longer an issue and will only show up with hip buffer sizes in FL studio
// 12 : Engine.showErrorMessage