Class CrashReport

java.lang.Object
net.minecraft.src.CrashReport

public class CrashReport extends Object
  • Constructor Details

    • CrashReport

      public CrashReport(String par1Str, Throwable par2Throwable)
  • Method Details

    • getDescription

      public String getDescription()
      Returns the description of the Crash Report.
    • getCrashCause

      public Throwable getCrashCause()
      Returns the Throwable object that is the cause for the crash and Crash Report.
    • getSectionsInStringBuilder

      public void getSectionsInStringBuilder(StringBuilder par1StringBuilder)
      Gets the various sections of the crash report into the given StringBuilder
    • getCauseStackTraceOrString

      public String getCauseStackTraceOrString()
      Gets the stack trace of the Throwable that caused this crash report, or if that fails, the cause .toString().
    • getCompleteReport

      public String getCompleteReport()
      Gets the complete report with headers, stack trace, and different sections as a string.
    • getFile

      public File getFile()
      Gets the file this crash report is saved into.
    • saveToFile

      public boolean saveToFile(File par1File, ILogAgent par2ILogAgent)
      Saves the complete crash report to the given File.
    • getCategory

      public CrashReportCategory getCategory()
    • makeCategory

      public CrashReportCategory makeCategory(String par1Str)
      Creates a CrashReportCategory
    • makeCategoryDepth

      public CrashReportCategory makeCategoryDepth(String par1Str, int par2)
      Creates a CrashReportCategory for the given stack trace depth
    • makeCrashReport

      public static CrashReport makeCrashReport(Throwable par0Throwable, String par1Str)
      Creates a crash report for the exception