Removed extraneous exception C++ sample.