Shared the C++ sample across all three exception mechanisms.