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 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 Summary
Constructors Constructor Description CrashReport(String message, Throwable cause)
-
Method Summary
Modifier and Type Method 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)
-
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()
-