Throwable.fillInStackTrace
Class Overview | Class Members |
This Package |
All Packages
public native Throwable fillInStackTrace()
Returns
this Throwable object.
Description
Fills in the execution stack trace. This method is useful when an
application is re-throwing an error or exception. For example:
try {
a = b / c;
} catch(ArithmeticThrowable e) {
a = Number.MAX_VALUE;
throw e.fillInStackTrace();
}
See Also
printStackTrace