Java Throwable.fillInStackTrace()
Syntax
Throwable.fillInStackTrace() has the following syntax.
public Throwable fillInStackTrace()
Example
In the following code shows how to use Throwable.fillInStackTrace() method.
//from w w w . j a va2 s .c o m
public class Main {
public static void main(String[] argv) {
Throwable t = new Exception("from java2s.com");
t.fillInStackTrace();
}
}