/** * Stringify the given exception. */ public static String toString(ExceptionInfo e) { int type = e.getType(); StringBuffer buf = new StringBuffer(); buf.append("<"). append(OpenJPAVersion.VERSION_ID). 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()); Object failed = e.getFailedObject(); if (failed != null) buf.append(SEP).append("FailedObject: "). append(toString(failed)); return buf.toString(); }
/** * Stringify the given exception. */ public static String toString(ExceptionInfo e) { int type = e.getType(); StringBuilder buf = new StringBuilder(); buf.append("<"). append(OpenJPAVersion.VERSION_ID). 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()); Object failed = e.getFailedObject(); if (failed != null) buf.append(SEP).append("FailedObject: "). append(toString(failed)); return buf.toString(); }
/** * Stringify the given exception. */ public static String toString(ExceptionInfo e) { int type = e.getType(); StringBuilder buf = new StringBuilder(); buf.append("<"). append(OpenJPAVersion.VERSION_ID). 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()); Object failed = e.getFailedObject(); if (failed != null) buf.append(SEP).append("FailedObject: "). append(toString(failed)); return buf.toString(); }
/** * Stringify the given exception. */ public static String toString(ExceptionInfo e) { int type = e.getType(); StringBuilder buf = new StringBuilder(); buf.append("<"). append(OpenJPAVersion.VERSION_ID). 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()); Object failed = e.getFailedObject(); if (failed != null) buf.append(SEP).append("FailedObject: "). append(toString(failed)); return buf.toString(); }
/** * Stringify the given exception. */ public static String toString(ExceptionInfo e) { int type = e.getType(); StringBuilder buf = new StringBuilder(); buf.append("<"). append(OpenJPAVersion.VERSION_ID). 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()); Object failed = e.getFailedObject(); if (failed != null) buf.append(SEP).append("FailedObject: "). append(toString(failed)); return buf.toString(); }