In Java, is there any way to get(catch) all exceptions instead of catch the exception individually?
exceptions
Do you mean catch an Exception of any type that is thrown, as opposed to just specific Exceptions?
Exception
If so:
try { //...file IO... } catch(Exception e) { //...do stuff with e, such as check its type or log it... }