Index: openjpa-kernel/src/main/java/org/apache/openjpa/util/Exceptions.java =================================================================== --- openjpa-kernel/src/main/java/org/apache/openjpa/util/Exceptions.java (revision 521914) +++ openjpa-kernel/src/main/java/org/apache/openjpa/util/Exceptions.java (working copy) @@ -132,10 +132,17 @@ * Stringify the given exception. */ public static String toString(ExceptionInfo e) { + int type = e.getType(); StringBuffer buf = new StringBuffer(); - buf.append("<").append(e.getType()). - append('|').append(e.isFatal()). - append('|').append(OpenJPAVersion.VERSION_NUMBER). + buf.append("<"). + append(OpenJPAVersion.VERSION_NUMBER).append(' '). + append(e.isFatal() ? "fatal " : "nonfatal "). + append (type == ExceptionInfo.GENERAL ? "general error" : + type == ExceptionInfo.INTERNAL ? "internal error" : + type == ExceptionInfo.STORE ? "store error" : + type == ExceptionInfo.UNSUPPORTED ? "unsupported error" : + type == ExceptionInfo.USER ? "user error" : + (type + " error")). append("> "); buf.append(e.getClass().getName()).append(": "). append(e.getMessage());