Sorry, but how does an exception looks like? (can't remember :oops:)
if (LoadXMLResource(bleh) == FAILED)
{
throw cbPluginError("Couldn't load resource file... please reboot your system");
}
That's just an example of how it would look in the ctor or the OnAttach() method in the plugin.
The code that loads the plugin would be something like:
try
{
LoadPlugin(thePlugin);
// ...
}
catch (cbPluginError &error)
{
// What to do when the error is catched
}