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
()
| 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 | /** |
no test coverage detected