Package net.minecraft

Class CrashReport

java.lang.Object
net.minecraft.CrashReport

public class CrashReport extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • DATE_TIME_FORMATTER

      private static final DateTimeFormatter DATE_TIME_FORMATTER
    • title

      private final String title
    • exception

      private final Throwable exception
    • details

      private final List<CrashReportCategory> details
    • saveFile

      @Nullable private Path saveFile
    • trackingStackTrace

      private boolean trackingStackTrace
    • uncategorizedStackTrace

      private StackTraceElement[] uncategorizedStackTrace
    • systemReport

      private final SystemReport systemReport
  • Constructor Details

  • Method Details

    • getTitle

      public String getTitle()
    • getException

      public Throwable getException()
    • getDetails

      public String getDetails()
    • getDetails

      public void getDetails(StringBuilder pBuilder)
      Gets the various sections of the crash report into the given StringBuilder
    • getExceptionMessage

      public String getExceptionMessage()
    • getFriendlyReport

      public String getFriendlyReport(ReportType pType, List<String> pLinks)
    • getFriendlyReport

      public String getFriendlyReport(ReportType pType)
    • getSaveFile

      @Nullable public Path getSaveFile()
    • saveToFile

      public boolean saveToFile(Path pPath, ReportType pType, List<String> pLinks)
    • saveToFile

      public boolean saveToFile(Path pPath, ReportType pType)
    • getSystemReport

      public SystemReport getSystemReport()
    • addCategory

      public CrashReportCategory addCategory(String pName)
      Creates a CrashReportCategory
    • addCategory

      public CrashReportCategory addCategory(String pCategoryName, int pStacktraceLength)
      Creates a CrashReportCategory for the given stack trace depth
    • forThrowable

      public static CrashReport forThrowable(Throwable pCause, String pDescription)
      Creates a crash report for the exception
    • preload

      public static void preload()