Package net.minecraft.util.crash
Class CrashReport
java.lang.Object
net.minecraft.util.crash.CrashReport
public class CrashReport extends Object
-
Field Summary
Fields Modifier and Type Field Description private Throwablecauseprivate Filefileprivate booleanhasStackTraceprivate static LoggerLOGGERprivate Stringmessageprivate List<CrashReportSection>otherSectionsprivate StackTraceElement[]stackTraceprivate CrashReportSectionsystemDetailsSection -
Constructor Summary
Constructors Constructor Description CrashReport(String message, Throwable cause) -
Method Summary
Modifier and Type Method Description CrashReportSectionaddElement(String name)CrashReportSectionaddElement(String name, int ignoredStackTraceCallCount)voidaddStackTrace(StringBuilder stringBuilder)StringasString()static CrashReportcreate(Throwable cause, String title)private voidfillSystemDetails()private static StringgenerateWittyComment()ThrowablegetCause()StringgetCauseAsString()FilegetFile()StringgetMessage()CrashReportSectiongetSystemDetailsSection()static voidinitCrashReport()booleanwriteToFile(File file)
-
Field Details
-
LOGGER
-
message
-
cause
-
systemDetailsSection
-
otherSections
-
file
-
hasStackTrace
private boolean hasStackTrace -
stackTrace
-
-
Constructor Details
-
CrashReport
-
-
Method Details
-
fillSystemDetails
private void fillSystemDetails() -
getMessage
-
getCause
-
addStackTrace
-
getCauseAsString
-
asString
-
getFile
-
writeToFile
-
getSystemDetailsSection
-
addElement
-
addElement
-
generateWittyComment
-
create
-
initCrashReport
public static void initCrashReport()
-