throw (Error) ex;
}
if (ex instanceof RuntimeException) {
throw (RuntimeException) ex;
}
throw new SystemException(ex);
} else {
StringBuffer buffer = new StringBuffer();
for (Iterator i = exceptions.iterator(); i.hasNext();) {
Exception ex = (Exception) i.next();
if (buffer.length() > 0) {
buffer.append("\n______________________________________________________________\n\n");
}
buffer.append(ExceptionUtil.getStackTrace(ex));
}
throw new SystemException(buffer.toString());
}
}
}