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 @Nullable Pathprivate final SystemReportprivate final Stringprivate booleanprivate StackTraceElement[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategory(String name) Creates a CrashReportCategoryaddCategory(String name, int nestedOffset) Creates a CrashReportCategory for the given stack trace depthstatic CrashReportforThrowable(Throwable t, String title) Creates a crash report for the exceptionvoidgetDetails(StringBuilder builder) Gets the various sections of the crash report into the given StringBuildergetFriendlyReport(ReportType reportType) getFriendlyReport(ReportType reportType, List<String> extraComments) @Nullable PathgetTitle()static voidpreload()booleansaveToFile(Path file, ReportType reportType) booleansaveToFile(Path saveFile, ReportType reportType, List<String> extraComments)
-
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()
-