public class CrashReport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Throwable |
cause |
private java.io.File |
crashReportFile |
private java.util.List<CrashReportCategory> |
crashReportSections |
private java.lang.String |
description |
private boolean |
firstCategoryInCrashReport |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.lang.StackTraceElement[] |
stacktrace |
private CrashReportCategory |
systemDetailsCategory |
Constructor and Description |
---|
CrashReport(java.lang.String descriptionIn,
java.lang.Throwable causeThrowable) |
Modifier and Type | Method and Description |
---|---|
CrashReportCategory |
getCategory() |
java.lang.String |
getCauseStackTraceOrString() |
java.lang.String |
getCompleteReport() |
java.lang.Throwable |
getCrashCause() |
java.lang.String |
getDescription() |
java.io.File |
getFile() |
void |
getSectionsInStringBuilder(java.lang.StringBuilder builder) |
private static java.lang.String |
getWittyComment() |
CrashReportCategory |
makeCategory(java.lang.String name) |
CrashReportCategory |
makeCategoryDepth(java.lang.String categoryName,
int stacktraceLength) |
static CrashReport |
makeCrashReport(java.lang.Throwable causeIn,
java.lang.String descriptionIn) |
private void |
populateEnvironment() |
boolean |
saveToFile(java.io.File toFile) |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.lang.String description
private final java.lang.Throwable cause
private final CrashReportCategory systemDetailsCategory
private final java.util.List<CrashReportCategory> crashReportSections
private java.io.File crashReportFile
private boolean firstCategoryInCrashReport
private java.lang.StackTraceElement[] stacktrace
public CrashReport(java.lang.String descriptionIn, java.lang.Throwable causeThrowable)
private void populateEnvironment()
public java.lang.String getDescription()
public java.lang.Throwable getCrashCause()
public void getSectionsInStringBuilder(java.lang.StringBuilder builder)
public java.lang.String getCauseStackTraceOrString()
public java.lang.String getCompleteReport()
public java.io.File getFile()
public boolean saveToFile(java.io.File toFile)
public CrashReportCategory getCategory()
public CrashReportCategory makeCategory(java.lang.String name)
public CrashReportCategory makeCategoryDepth(java.lang.String categoryName, int stacktraceLength)
private static java.lang.String getWittyComment()
public static CrashReport makeCrashReport(java.lang.Throwable causeIn, java.lang.String descriptionIn)