c++ example: simple exception sample