try {
} catch(Exception e) {
//
}
It is not a good approach to catch all exceptions
with catch(Exception e) and makes the code difficult to debug.
It's better that you find that what exceptions may be thrown in the body of your try catch and catch all the specific exceptions, and perform the approperiate action for them.