Freigeben über


Log.GetStackTraceString(Throwable) Method

Definition

Handy function to get a loggable stack trace from a Throwable

[Android.Runtime.Register("getStackTraceString", "(Ljava/lang/Throwable;)Ljava/lang/String;", "")]
public static string GetStackTraceString (Java.Lang.Throwable? tr);
[<Android.Runtime.Register("getStackTraceString", "(Ljava/lang/Throwable;)Ljava/lang/String;", "")>]
static member GetStackTraceString : Java.Lang.Throwable -> string

Parameters

tr
Throwable

An exception to log.

Returns

Attributes

Remarks

Handy function to get a loggable stack trace from a Throwable

If any of the throwables in the cause chain is an UnknownHostException, this returns an empty string.

Java documentation for android.util.Log.getStackTraceString(java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to