Use
(Exception err)
{
e.printStackTrace(System.out); // NOTE This would throw the exception
on your server.. similarly u can replace system.out to direct the output to
other devices.
Regards
Rohit Parik
Netweb Software, India
Ph: +91-265-301424
+91-265-314729
Fax: +91-265-314756
email : [EMAIL PROTECTED]
----- Original Message -----
From: Oscar Pérez
To: [EMAIL PROTECTED]
Sent: Wednesday, March 14, 2001 3:14 PM
Subject: getting error message
Hi list,
About getting the errors messages in the catch code...
What I want it's to avoid the client to see the message, but being able to
capture it (completly) at .log files and dbmon.exe for debugging the code.
That's it, I want to stop 'cleanly' the html flow but still getting the
completely message (with the line code number where the error happened)
I've used the calls .toString() and .getMessage() in the catch code and I
accomplish my first objective: to stop the web application in a clean way,
but not the second one: I only get the header of the exception (pe. "java
NullPointerException:") and I don't know the line where the error occurs.
I will thank any help!!
OsKaR.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff J2EE-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".