made exception argument of handleException const