()
| 321 | // } |
| 322 | |
| 323 | @Override |
| 324 | public String toString() { |
| 325 | String msg = getLocalizedMessage(); |
| 326 | String name = getClass().getName(); |
| 327 | if (msg == null) { |
| 328 | return name; |
| 329 | } |
| 330 | return new StringBuilder(name.length() + 2 + msg.length()).append(name).append(": ") |
| 331 | .append(msg).toString(); |
| 332 | } |
| 333 | |
| 334 | /** |
| 335 | * Initializes the cause of this {@code Throwable}. The cause can only be |