public class CrashReport extends Object
Modifier and Type | Field and Description |
---|---|
private Throwable |
cause |
private File |
file |
private boolean |
hasStackTrace |
private static Logger |
LOGGER |
private String |
message |
private List<CrashReportSection> |
otherSections |
private StackTraceElement[] |
stackTrace |
private CrashReportSection |
systemDetailsSection |
Constructor and Description |
---|
CrashReport(String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
CrashReportSection |
addElement(String name) |
CrashReportSection |
addElement(String name,
int ignoredStackTraceCallCount) |
void |
addStackTrace(StringBuilder stringBuilder) |
String |
asString() |
static CrashReport |
create(Throwable cause,
String title) |
private void |
fillSystemDetails() |
private static String |
generateWittyComment() |
Throwable |
getCause() |
String |
getCauseAsString() |
File |
getFile() |
String |
getMessage() |
CrashReportSection |
getSystemDetailsSection() |
static void |
initCrashReport() |
boolean |
writeToFile(File file) |
private static final Logger LOGGER
private final String message
private final Throwable cause
private final CrashReportSection systemDetailsSection
private final List<CrashReportSection> otherSections
private File file
private boolean hasStackTrace
private StackTraceElement[] stackTrace
private void fillSystemDetails()
public String getMessage()
public Throwable getCause()
public void addStackTrace(StringBuilder stringBuilder)
public String getCauseAsString()
public String asString()
@Environment(value=CLIENT) public File getFile()
public boolean writeToFile(File file)
public CrashReportSection getSystemDetailsSection()
public CrashReportSection addElement(String name)
public CrashReportSection addElement(String name, int ignoredStackTraceCallCount)
private static String generateWittyComment()
public static CrashReport create(Throwable cause, String title)
public static void initCrashReport()