Class CrashReportExtender


  • public class CrashReportExtender
    extends java.lang.Object
    • Field Detail

      • crashCallables

        private static java.util.List<ICrashCallable> crashCallables
    • Constructor Detail

      • CrashReportExtender

        public CrashReportExtender()
    • Method Detail

      • registerCrashCallable

        public static void registerCrashCallable​(ICrashCallable callable)
      • registerCrashCallable

        public static void registerCrashCallable​(java.lang.String headerName,
                                                 java.util.concurrent.Callable<java.lang.String> reportGenerator)
      • addCrashReportHeader

        public static void addCrashReportHeader​(java.lang.StringBuilder stringbuilder,
                                                CrashReport crashReport)
      • generateEnhancedStackTrace

        public static java.lang.String generateEnhancedStackTrace​(java.lang.Throwable throwable)
      • generateEnhancedStackTrace

        public static java.lang.String generateEnhancedStackTrace​(java.lang.StackTraceElement[] stacktrace)
      • generateEnhancedStackTrace

        public static java.lang.String generateEnhancedStackTrace​(java.lang.Throwable throwable,
                                                                  boolean header)
      • dumpModLoadingCrashReport

        public static java.io.File dumpModLoadingCrashReport​(org.apache.logging.log4j.Logger logger,
                                                             LoadingFailedException error,
                                                             java.io.File topLevelDir)