how or where I suppose to caught the exception