Java.Lang.Throwable.FillInStackTrace Method
Records the stack trace from the point where this method has been called to this Throwable.

Syntax

[Android.Runtime.Register("fillInStackTrace", "()Ljava/lang/Throwable;", "GetFillInStackTraceHandler")]
public virtual Throwable FillInStackTrace ()

Returns

Documentation for this section has not yet been entered.

Remarks

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.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1