Package net.minecraft
Class CrashReport
java.lang.Object
net.minecraft.CrashReport
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DateTimeFormatter
private final List
<CrashReportCategory> private final Throwable
private static final org.slf4j.Logger
private Path
private final SystemReport
private final String
private boolean
private 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 CrashReport
forThrowable
(Throwable pCause, String pDescription) Creates a crash report for the exceptionvoid
getDetails
(StringBuilder pBuilder) Gets the various sections of the crash report into the given StringBuildergetFriendlyReport
(ReportType pType) getFriendlyReport
(ReportType pType, List<String> pLinks) getTitle()
static void
preload()
boolean
saveToFile
(Path pPath, ReportType pType) boolean
saveToFile
(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()
-