C++ Exception Handling Test