MCPcopy Index your code
hub / github.com/apache/tomcat / getThrowable

Method getThrowable

java/org/apache/tomcat/util/MultiThrowable.java:72–80  ·  view source on GitHub ↗

Return the wrapped throwable. @return null if there are no wrapped throwables, the Throwable if there is a single wrapped throwable or the current instance if there are multiple wrapped throwables

()

Source from the content-addressed store, hash-verified

70 * the current instance if there are multiple wrapped throwables
71 */
72 public Throwable getThrowable() {
73 if (size() == 0) {
74 return null;
75 } else if (size() == 1) {
76 return throwables.get(0);
77 } else {
78 return this;
79 }
80 }
81
82
83 /**

Callers 2

startInternalMethod · 0.95
customizeEventMethod · 0.45

Calls 2

sizeMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected