Commit ed7711b7 authored by Guido van Rossum's avatar Guido van Rossum

Sorted exceptions; added ImportError.

parent 1c8230b7
...@@ -605,6 +605,7 @@ getbuiltin(name) ...@@ -605,6 +605,7 @@ getbuiltin(name)
object *AttributeError; object *AttributeError;
object *EOFError; object *EOFError;
object *IOError; object *IOError;
object *ImportError;
object *IndexError; object *IndexError;
object *KeyError; object *KeyError;
object *KeyboardInterrupt; object *KeyboardInterrupt;
...@@ -631,21 +632,22 @@ newstdexception(name) ...@@ -631,21 +632,22 @@ newstdexception(name)
static void static void
initerrors() initerrors()
{ {
RuntimeError = newstdexception("RuntimeError");
EOFError = newstdexception("EOFError");
TypeError = newstdexception("TypeError");
MemoryError = newstdexception("MemoryError");
NameError = newstdexception("NameError");
SystemError = newstdexception("SystemError");
KeyboardInterrupt = newstdexception("KeyboardInterrupt");
AttributeError = newstdexception("AttributeError"); AttributeError = newstdexception("AttributeError");
EOFError = newstdexception("EOFError");
IOError = newstdexception("IOError"); IOError = newstdexception("IOError");
ZeroDivisionError = newstdexception("ZeroDivisionError"); ImportError = newstdexception("ImportError");
IndexError = newstdexception("IndexError"); IndexError = newstdexception("IndexError");
ValueError = newstdexception("ValueError");
KeyError = newstdexception("KeyError"); KeyError = newstdexception("KeyError");
KeyboardInterrupt = newstdexception("KeyboardInterrupt");
MemoryError = newstdexception("MemoryError");
NameError = newstdexception("NameError");
OverflowError = newstdexception("OverflowError"); OverflowError = newstdexception("OverflowError");
RuntimeError = newstdexception("RuntimeError");
SyntaxError = newstdexception("SyntaxError"); SyntaxError = newstdexception("SyntaxError");
SystemError = newstdexception("SystemError");
TypeError = newstdexception("TypeError");
ValueError = newstdexception("ValueError");
ZeroDivisionError = newstdexception("ZeroDivisionError");
} }
void void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment