Package net.minecraft
Class CrashReport
java.lang.Object
net.minecraft.CrashReport
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DateTimeFormatterprivate final List<CrashReportCategory> private final Throwableprivate static final org.slf4j.Loggerprivate Pathprivate final SystemReportprivate final Stringprivate booleanprivate StackTraceElement[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategory(String pName) Creates a CrashReportCategoryaddCategory(String pCategoryName, int pStacktraceLength) Creates a CrashReportCategory for the given stack trace depthstatic CrashReportforThrowable(Throwable pCause, String pDescription) Creates a crash report for the exceptionvoidgetDetails(StringBuilder pBuilder) Gets the various sections of the crash report into the given StringBuildergetFriendlyReport(ReportType pType) getFriendlyReport(ReportType pType, List<String> pLinks) getTitle()static voidpreload()booleansaveToFile(Path pPath, ReportType pType) booleansaveToFile(Path pPath, ReportType pType, List<String> pLinks)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DATE_TIME_FORMATTER
-
title
-
exception
-
details
-
saveFile
-
trackingStackTrace
private boolean trackingStackTrace -
uncategorizedStackTrace
-
systemReport
-
-
Constructor Details
-
CrashReport
-
-
Method Details
-
getTitle
-
getException
-
getDetails
-
getDetails
Gets the various sections of the crash report into the given StringBuilder -
getExceptionMessage
-
getFriendlyReport
-
getFriendlyReport
-
getSaveFile
-
saveToFile
-
saveToFile
-
getSystemReport
-
addCategory
Creates a CrashReportCategory -
addCategory
Creates a CrashReportCategory for the given stack trace depth -
forThrowable
Creates a crash report for the exception -
preload
public static void preload()
-