Exceptions: How to make sure... 2006-11-01 - By Panos Konstantinidis
Back You have to know before hand what excpetion each line in the try {...} block throws in order to catch it.
-- -- Original Message ---- From: Ne'Bahn <ne.bahn@(protected)> To: J2EE-INTEREST@(protected) Sent: Monday, October 30, 2006 5:41:37 AM Subject: Exceptions: How to make sure...
Hi list, how make sure I can handle (catch) every exception that a statement may throw; I mean, I can add:
// proof code } catch (Exception anyException) { // handle it generically }
But what I really want to know is how many and which are the exceptions that a statement may throw...thanks in advance
==========================================================================To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
==========================================================================To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|