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 builder)
      Gets the various sections of the crash report into the given StringBuilder
    • getExceptionMessage

      public String getExceptionMessage()
    • getFriendlyReport

      public String getFriendlyReport(ReportType type, List<String> links)
    • getFriendlyReport

      public String getFriendlyReport(ReportType type)
    • getSaveFile

      @Nullable public Path getSaveFile()
    • saveToFile

      public boolean saveToFile(Path path, ReportType type, List<String> links)
    • saveToFile

      public boolean saveToFile(Path path, ReportType type)
    • getSystemReport

      public SystemReport getSystemReport()
    • addCategory

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

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

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

      public static void preload()