Use C++ exception handling, not Java.