MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / getCause

Method getCause

src/utils/Exceptions.java:30–40  ·  view source on GitHub ↗

Iterates through the stack trace, looking for the actual cause of the deferred group exception. These traces can be huge and truncated in the logs so it's really useful to be able to spit out the source. @param e A DeferredGroupException to parse @return The root cause of the exception if found.

(final DeferredGroupException e)

Source from the content-addressed store, hash-verified

28 * @return The root cause of the exception if found.
29 */
30 public static Throwable getCause(final DeferredGroupException e) {
31 Throwable ex = e;
32 while (ex.getClass().equals(DeferredGroupException.class)) {
33 if (ex.getCause() == null) {
34 break;
35 } else {
36 ex = ex.getCause();
37 }
38 }
39 return ex;
40 }
41}

Callers 15

oneLevelMethod · 0.95
nestedMethod · 0.95
getTagsMethod · 0.95
resolveIdsMethod · 0.95
lookupMethod · 0.95
callMethod · 0.95
exceptionCaughtMethod · 0.80
getTSMetaNSUMetricMethod · 0.80
getTSMetaNSUTagkMethod · 0.80
getTSMetaNSUTagvMethod · 0.80

Calls 1

equalsMethod · 0.45

Tested by 14

oneLevelMethod · 0.76
nestedMethod · 0.76
exceptionCaughtMethod · 0.64
getTSMetaNSUMetricMethod · 0.64
getTSMetaNSUTagkMethod · 0.64
getTSMetaNSUTagvMethod · 0.64
callMethod · 0.64
executeNSUMethod · 0.64