public class CrashReport
extends java.lang.Object
Constructor and Description |
---|
CrashReport(java.lang.String par1Str,
java.lang.Throwable par2Throwable) |
Modifier and Type | Method and Description |
---|---|
CrashReportCategory |
getCategory() |
java.lang.String |
getCauseStackTraceOrString()
Gets the stack trace of the Throwable that caused this crash report, or if that fails, the cause .toString().
|
java.lang.String |
getCompleteReport()
Gets the complete report with headers, stack trace, and different sections as a string.
|
java.lang.Throwable |
getCrashCause()
Returns the Throwable object that is the cause for the crash and Crash Report.
|
java.lang.String |
getDescription()
Returns the description of the Crash Report.
|
java.io.File |
getFile()
Gets the file this crash report is saved into.
|
void |
getSectionsInStringBuilder(java.lang.StringBuilder par1StringBuilder)
Gets the various sections of the crash report into the given StringBuilder
|
CrashReportCategory |
makeCategory(java.lang.String par1Str)
Creates a CrashReportCategory
|
CrashReportCategory |
makeCategoryDepth(java.lang.String par1Str,
int par2)
Creates a CrashReportCategory for the given stack trace depth
|
static CrashReport |
makeCrashReport(java.lang.Throwable par0Throwable,
java.lang.String par1Str)
Creates a crash report for the exception
|
boolean |
saveToFile(java.io.File p_147149_1_)
Saves this CrashReport to the given file and returns a value indicating whether we were successful at doing so.
|
public CrashReport(java.lang.String par1Str, java.lang.Throwable par2Throwable)
public java.lang.String getDescription()
public java.lang.Throwable getCrashCause()
public void getSectionsInStringBuilder(java.lang.StringBuilder par1StringBuilder)
public java.lang.String getCauseStackTraceOrString()
public java.lang.String getCompleteReport()
public java.io.File getFile()
public boolean saveToFile(java.io.File p_147149_1_)
public CrashReportCategory getCategory()
public CrashReportCategory makeCategory(java.lang.String par1Str)
public CrashReportCategory makeCategoryDepth(java.lang.String par1Str, int par2)
public static CrashReport makeCrashReport(java.lang.Throwable par0Throwable, java.lang.String par1Str)