This one is used trough whole vorlib for error handling. Each class that may throw exceptions, make new class that inherits from this one. Then, you can catch them all-in-one like:
try {
or, instead of catching all, you can catch just some specific exception (like tree_e).
some code here
}
catch (exception *e) {
and do something with the error
delete e;
}
You should definitelly delete the exception, or it will make a resource leak. (Or throw it again and catch it elsewhere)