Added onException sample