MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / makeSummary

Method makeSummary

src/main/java/net/optifine/CrashReporter.java:83–104  ·  view source on GitHub ↗
(CrashReport crashReport)

Source from the content-addressed store, hash-verified

81 }
82
83 private static String makeSummary(CrashReport crashReport)
84 {
85 Throwable throwable = crashReport.getCrashCause();
86
87 if (throwable == null)
88 {
89 return "Unknown";
90 }
91 else
92 {
93 StackTraceElement[] astacktraceelement = throwable.getStackTrace();
94 String s = "unknown";
95
96 if (astacktraceelement.length > 0)
97 {
98 s = astacktraceelement[0].toString().trim();
99 }
100
101 String s1 = throwable.getClass().getName() + ": " + throwable.getMessage() + " (" + crashReport.getDescription() + ")" + " [" + s + "]";
102 return s1;
103 }
104 }
105
106 public static void extendCrashReport(CrashReportCategory cat)
107 {

Callers 2

onCrashReportMethod · 0.95
makeReportMethod · 0.95

Calls 7

getCrashCauseMethod · 0.80
getStackTraceMethod · 0.80
trimMethod · 0.80
getNameMethod · 0.65
toStringMethod · 0.45
getMessageMethod · 0.45
getDescriptionMethod · 0.45

Tested by

no test coverage detected