how can I catch all the exceptions?