Log.GetStackTraceString(Throwable) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The stack-trace text, or an empty string if tr is null or if it or any of its causes is an UnknownHostException.
- 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.