Wednesday, March 6, 2013

To Print the stacktrace of the current method

Problem:

I want to print the call stack trace of the current method.

Solution:

final Throwable t = new Throwable();
t.printStackTrace();
 
 
 
.

No comments:

Post a Comment