public static String formatException(PyObject type, PyObject value, boolean useRepr) { StringBuilder buf = new StringBuilder(); if (PyException.isExceptionClass(type)) { String className = PyException.exceptionClassName(type); int lastDot = className.lastIndexOf('.');
if (isExceptionClass(type)) { if (inClass == null || !Py.isSubClass(inClass, type)) { PyObject[] args;
if (isExceptionClass(type) && isExceptionClass(exc)) { try { return Py.isSubClass(type, exc);
if (isExceptionClass(type)) { PyException pye = new PyException(type, value, (PyTraceback)traceback); pye.normalize();