|
|
Re: stacktrace for unchecked exceptions
|
Posted: Jul 25, 2005 11:52 PM
|
|
Give us an example of what you mean.
For the time being you can trace your Runtime Exceptions as follows:
try{ // some code that causes an Exception ... ... ... }catch(Exception e){ e.printStackTrace(); }
It is usually more accurate to catch specific Exceptions e.g: InterruptedException e, if you're dealing with Threads or SQLException e, if you're dealing with JDBC (Java Database Connectivity) related code, you may uses the Java API to look up the Exception class it has the subclasses listed. Google Java API or Java Doc, it should lead you to the API pages.
Hope this helps.
One, Spike
|
|