public static final class FaultLogger.FaultLogInfo extends Object
| 构造器 | 说明 |
|---|---|
FaultLogInfo() |
A constructor used to create a
FaultLogInfo instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getFaultType() |
Obtains the fault type from the application fault record.
|
Optional<FileInputStream> |
getLogFileStream() |
Obtains the log file stream of the application fault record.
|
int |
getPid() |
Obtains the process ID (PID) from the application fault record.
|
String |
getReason() |
Obtains the reason why the application fault record was generated.
|
String |
getSummary() |
Obtains the summary of the application fault record.
|
long |
getTimestamp() |
Obtains the time when the application fault record was generated.
|
int |
getUid() |
Obtains the user ID (UID) from the application fault record.
|
public FaultLogInfo()
FaultLogInfo instance.public int getPid()
public int getUid()
public int getFaultType()
FaultLogger#FAULT_TYPE_JAVA_CRASH, FaultLogger#FAULT_TYPE_CPP_CRASH, FaultLogger#FAULT_TYPE_JS_CRASH, or FaultLogger#FAULT_TYPE_APP_FREEZE.public long getTimestamp()
public String getReason()
public String getSummary()
A record summary briefs the fault characteristics. For example, the summary of a FaultLogger#FAULT_TYPE_JAVA_CRASH fault describes the call stack of the crashed thread.
public Optional<FileInputStream> getLogFileStream()
Generally, log files record detailed information for fault locating.
null if there are no log files.