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.
()
| 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 | } |
nothing calls this directly
no test coverage detected