Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can i modify Stacktrace

 
surendar prabu
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After i catch the Exception thrown, in the catch block, is there any way i could modify i.e; suppress some function calls at the bottom most level before printing using the printstacktace method.

Now i am printing mystacktrace into file. If i am printing the trace for execute method in struts Action class, there is a long trace printed before the call to execute method. Can i suppress that by call to some method.

Please help me.

regards,
Surendar Prabu
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the setStacktrace method in the Throwable class.
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!