in this case how can i able to know what specific exception to catch instead of using Exception as general?