(Throwable t)
| 64 | } |
| 65 | |
| 66 | static Throwable unwrap(Throwable t) { |
| 67 | while ((t instanceof CompletionException || t instanceof java.util.concurrent.ExecutionException) |
| 68 | && t.getCause() != null) { |
| 69 | t = t.getCause(); |
| 70 | } |
| 71 | while (t instanceof RuntimeException && t.getCause() != null |
| 72 | && !(t instanceof BaseError)) { |
| 73 | t = t.getCause(); |
| 74 | } |
| 75 | return t; |
| 76 | } |
| 77 | |
| 78 | static String shorten(String s) { |
| 79 | if (s == null) return "null"; |