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

Method toString

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

Overrides the default implementation to provide a concatenation of the messages associated with each of the wrapped throwables. Note that the format of the returned String is not guaranteed to be fixed and may change in a future release.

()

Source from the content-addressed store, hash-verified

96 * future release.
97 */
98 @Override
99 public String toString() {
100 StringBuilder sb = new StringBuilder();
101 sb.append(super.toString());
102 sb.append(": ");
103 sb.append(size());
104 sb.append(" wrapped Throwables: ");
105 for (Throwable t : throwables) {
106 sb.append('[');
107 sb.append(t.getMessage());
108 sb.append(']');
109 }
110
111 return sb.toString();
112 }
113}

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.95
toStringMethod · 0.65
getMessageMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected