Qais Sahel February 2016

program error exceptions shouldn't be caught by application program

I'm learning java and I don't understand Why should the program error exception never be caught by the application program?

Answers


Peter Lawrey February 2016

Why should the program error exception never be caught by the application program?

You should only catch Exception/Errors at the point when you can handle and recover from them. Errors are usually too serious to be able to handle and recover from. Never the less, you can catch them in rare case, esp if you want to log them.

Post Status

Asked in February 2016
Viewed 1,596 times
Voted 13
Answered 1 times

Search




Leave an answer