From: Finn B. <bc...@us...> - 2002-01-06 16:11:09
|
Update of /cvsroot/jython/jython/org/python/core In directory usw-pr-cvs1:/tmp/cvs-serv24355 Modified Files: exceptions.java Log Message: Added 2.2 exceptions. Index: exceptions.java =================================================================== RCS file: /cvsroot/jython/jython/org/python/core/exceptions.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** exceptions.java 2001/11/27 19:07:21 1.10 --- exceptions.java 2002/01/06 16:11:06 1.11 *************** *** 25,28 **** --- 25,29 ---- " |\n" + " +-- SystemExit\n" + + " +-- StopIteration\n" + " +-- StandardError\n" + " | |\n" + *************** *** 69,72 **** --- 70,74 ---- " | | +-- UnicodeError\n" + " | |\n" + + " | +-- ReferenceError\n" + " | +-- SystemError\n" + " | +-- MemoryError\n" + *************** *** 77,80 **** --- 79,83 ---- " +-- DeprecationWarning\n" + " +-- SyntaxWarning\n" + + " +-- OverflowWarning\n" + " +-- RuntimeWarning"; *************** *** 143,146 **** --- 146,152 ---- "platform and version."); + buildClass(dict, "ReferenceError", "StandardError", "empty__init__", + "Weak ref proxy used after referent went away."); + buildClass(dict, "EOFError", "StandardError", "empty__init__", "Read beyond end of file."); *************** *** 204,207 **** --- 210,216 ---- "Request to exit from the interpreter."); + buildClass(dict, "StopIterator", "Exception", "empty__init__", + "Signal the end from iterator.next()."); + buildClass(dict, "Warning", "Exception", "empty__init__", "Base class for warning categories."); *************** *** 218,221 **** --- 227,234 ---- buildClass(dict, "RuntimeWarning", "Warning", "empty__init__", "Base class for warnings about dubious runtime behavior."); + + buildClass(dict, "OverflowWarning", "Warning", "empty__init__", + "Base class for warnings about numeric overflow."); + ts.frame = ts.frame.f_back; } |