(CrashReport crashReport)
| 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 | { |
no test coverage detected