Methods Summary |
---|
public static java.lang.String | getCompleteMessage(java.lang.String msg, java.lang.Throwable t)
final StringBuilder builder = new StringBuilder();
if (msg != null) {
builder.append(msg).append(": ");
}
builder.append(t.getMessage());
while ((t = t.getCause()) != null) {
builder.append(": ").append(t.getMessage());
}
return builder.toString();
|
public static java.lang.String | getCompleteMessage(java.lang.Throwable t)
return getCompleteMessage(null, t);
|
public static void | maybeUnwrapIOException(java.lang.RuntimeException e)
if ((e instanceof IllegalStateException) && e.getMessage().startsWith(PREFIX_IO)) {
throw new IOException(e.getMessage().substring(PREFIX_IO.length()));
}
|
public static java.lang.RuntimeException | wrap(java.io.IOException e)
throw new IllegalStateException(PREFIX_IO + e.getMessage());
|