if (message != null) StringUtils.splitUp(buf, message, MAX_MESSAGE_WIDTH);
if (t != null) {
if (message != null) buf.append("\n");
StringUtils.splitUp(buf, t.toString(), MAX_MESSAGE_WIDTH);
if (t instanceof SQLException) {
SQLException ex = (SQLException)t;
ex = ex.getNextException();
while (ex != null) {
buf.append("\n");
StringUtils.splitUp(buf, ex.toString(), MAX_MESSAGE_WIDTH);
ex = ex.getNextException();
}
}
}
String errorMessage = buf.toString();