Most visited

Recently visited

Added in API level 14

ApplicationErrorReport.CrashInfo

public static class ApplicationErrorReport.CrashInfo
extends Object

java.lang.Object
    android.app.ApplicationErrorReport.CrashInfo


描述应用程序崩溃。

摘要(Summary)

Fields

public String exceptionClassName

导致崩溃的异常的类名称。

public String exceptionMessage

消息存储在异常中。

public String stackTrace

堆栈跟踪。

public String throwClassName

抛出异常的类。

public String throwFileName

抛出异常的文件。

public int throwLineNumber

行号是引发异常的行号。

public String throwMethodName

抛出异常的方法。

Public constructors

ApplicationErrorReport.CrashInfo()

创建一个未初始化的CrashInfo实例。

ApplicationErrorReport.CrashInfo(Throwable tr)

创建一个从异常初始化的CrashInfo实例。

ApplicationErrorReport.CrashInfo(Parcel in)

创建一个从Parcel初始化的CrashInfo实例。

公共方法(Public methods)

void dump(Printer pw, String prefix)

将CrashInfo实例转储到打印机。

void writeToParcel(Parcel dest, int flags)

将CrashInfo实例保存到宗地。

继承方法(Inherited methods)

From class java.lang.Object

Fields

exceptionClassName

Added in API level 14
String exceptionClassName

导致崩溃的异常的类名称。

exceptionMessage

Added in API level 14
String exceptionMessage

消息存储在异常中。

stackTrace

Added in API level 14
String stackTrace

堆栈跟踪。

throwClassName

Added in API level 14
String throwClassName

抛出异常的类。

throwFileName

Added in API level 14
String throwFileName

抛出异常的文件。

throwLineNumber

Added in API level 14
int throwLineNumber

行号是引发异常的行号。

throwMethodName

Added in API level 14
String throwMethodName

抛出异常的方法。

Public constructors

ApplicationErrorReport.CrashInfo

Added in API level 14
ApplicationErrorReport.CrashInfo ()

创建一个未初始化的CrashInfo实例。

ApplicationErrorReport.CrashInfo

Added in API level 14
ApplicationErrorReport.CrashInfo (Throwable tr)

创建一个从异常初始化的CrashInfo实例。

参数(Parameters)
tr Throwable

ApplicationErrorReport.CrashInfo

Added in API level 14
ApplicationErrorReport.CrashInfo (Parcel in)

创建一个从Parcel初始化的CrashInfo实例。

参数(Parameters)
in Parcel

公共方法(Public methods)

dump

Added in API level 14
void dump (Printer pw, 
                String prefix)

将CrashInfo实例转储到打印机。

参数(Parameters)
pw Printer
prefix String

writeToParcel

Added in API level 14
void writeToParcel (Parcel dest, 
                int flags)

将CrashInfo实例保存到宗地。

参数(Parameters)
dest Parcel
flags int

Hooray!