MCPcopy Index your code
hub / github.com/ccxt/ccxt / unwrap

Method unwrap

java/examples/src/main/java/examples/ErrorHandling.java:66–76  ·  view source on GitHub ↗
(Throwable t)

Source from the content-addressed store, hash-verified

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";

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected