add exception sample