I have read this and this and this: if my question misses the point in those answers, please point it out and we'll get this one deleted. These questions indicate that this may actually be a bad thing under certain circumstances, but I think I understand that difference.QUESTION: If I am using a function from another library that throws an unchecked exception that can be corrected, AND I want to be safe, AND my program will be outputting directly to the user (there should be no reason to fail completely), do I:handle these individually AND include a catch-all catch block with a general unchecked Exception (say to request user input again)?handle the specific exceptions individually AND declare throws exception passing it to the caller?handle the specific exceptions AND leave the general exception out altogether?What is standard / defensive / unecessary programming?
Is a General Exception In Addition To Expected Exceptions Defensive or Unecessary?
java;exceptions;defensive programming