Example C++ exception class