PUBLIC:
This method is used to print out all the descriptor exceptions.
String cr = oracle.toplink.essentials.internal.helper.Helper.cr();
java.io.StringWriter swriter = new java.io.StringWriter();
java.io.PrintWriter writer = new java.io.PrintWriter(swriter);
writer.println(cr + ExceptionMessageGenerator.getHeader("DescriptorExceptionsHeader"));
writer.println("---------------------------------------------------------");
for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements();
enumtr.hasMoreElements();) {
Exception e = (Exception)enumtr.nextElement();
if (e instanceof DescriptorException) {
writer.println(cr + e);
}
}
if (getIntegrityChecker().hasRuntimeExceptions()) {
writer.println(cr + ExceptionMessageGenerator.getHeader("RuntimeExceptionsHeader"));
writer.println("---------------------------------------------------------");
for (Enumeration enumtr = getIntegrityChecker().getCaughtExceptions().elements();
enumtr.hasMoreElements();) {
Exception e = (Exception)enumtr.nextElement();
if (!(e instanceof DescriptorException)) {
writer.println(cr + e);
}
}
}
writer.flush();
swriter.flush();
return swriter.toString();