Try and Catch while drawing