+ 12
Please elaborate on your question. An example would be helpful. What I understand from your post is that you have a try block that might result in many different exceptions. Now, what do you want to do? Your opportunities: - multi catch the exception, catch the different exceptions in different catch statements one by one - catch all exceptions at once by catching the class Exception (which the different exceptions extend)
5th Nov 2017, 9:07 PM
Tashi N
Tashi N - avatar