MCPcopy Create free account
hub / github.com/apache/calcite / causeOrSelf

Method causeOrSelf

core/src/main/java/org/apache/calcite/util/Util.java:1108–1112  ·  view source on GitHub ↗

Returns cause of the given throwable if it is non-null or the throwable itself. @param throwable input throwable @return cause of the given throwable if it is non-null or the throwable itself

(Throwable throwable)

Source from the content-addressed store, hash-verified

1106 * @return cause of the given throwable if it is non-null or the throwable itself
1107 */
1108 @API(since = "1.26", status = API.Status.EXPERIMENTAL)
1109 public static Throwable causeOrSelf(Throwable throwable) {
1110 Throwable cause = throwable.getCause();
1111 return cause != null ? cause : throwable;
1112 }
1113
1114 /**
1115 * Retrieves messages in a exception and writes them to a string. In the

Callers 15

createMethod · 0.95
getOperatorTableMethod · 0.95
setMethod · 0.95
getMethod · 0.95
addMethod · 0.95
addAllMethod · 0.95
initMethod · 0.95
cardinalityMethod · 0.95
tableCardinalityMethod · 0.95
isForeignKeyMethod · 0.95
isKeyMethod · 0.95
invokeVisitorInternalMethod · 0.95

Calls 1

getCauseMethod · 0.80

Tested by

no test coverage detected