Click to See Complete Forum and Search --> : Displaying Exceptions!
shinning
02-14-2006, 10:08 AM
Hi All,
Is their any other way then System.out.println for catching or displaying exceptions.
Please let me know.
Thanks
Khalid Ali
02-14-2006, 10:15 AM
don't get it it..when u use system.out you use default output stream to display things on the console...you can get the exceptions message my e.getMessage(). However I dont understand what u mean by only way to display it..can u be more specific?
BigDog
02-14-2006, 11:07 AM
Are you saying for logging? You can pass the message from an exception to your logging utility and have that in the log output.
Generally you can send the message or stacktrace as a string to pretty much whatever you want. If you are doign Swing you could send it to a pop up if you really wanted.
You can send the Exception message pretty much anywhere