Documentation for this section has not yet been entered.
Records the stack trace from the point where this method has been called to this Throwable. This method is invoked by the Throwable constructors.
This method is public so that code (such as an RPC system) which catches a Throwable and then re-throws it can replace the construction-time stack trace with a stack trace from the location where the exception was re-thrown, by callingfillInStackTrace.
This method is non-final so that non-Java language implementations can disable VM stack traces for their language. Filling in the stack trace is relatively expensive. Overriding this method in the root of a language's exception hierarchy allows the language to avoid paying for something it doesn't need.