#195 updated exception sample code