mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Sorted exceptions; added ImportError.
This commit is contained in:
parent
1c8230b70d
commit
ed7711b7cb
1 changed files with 12 additions and 10 deletions
|
@ -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)
|
||||||
static void
|
static void
|
||||||
initerrors()
|
initerrors()
|
||||||
{
|
{
|
||||||
RuntimeError = newstdexception("RuntimeError");
|
AttributeError = newstdexception("AttributeError");
|
||||||
EOFError = newstdexception("EOFError");
|
EOFError = newstdexception("EOFError");
|
||||||
TypeError = newstdexception("TypeError");
|
IOError = newstdexception("IOError");
|
||||||
|
ImportError = newstdexception("ImportError");
|
||||||
|
IndexError = newstdexception("IndexError");
|
||||||
|
KeyError = newstdexception("KeyError");
|
||||||
|
KeyboardInterrupt = newstdexception("KeyboardInterrupt");
|
||||||
MemoryError = newstdexception("MemoryError");
|
MemoryError = newstdexception("MemoryError");
|
||||||
NameError = newstdexception("NameError");
|
NameError = newstdexception("NameError");
|
||||||
SystemError = newstdexception("SystemError");
|
|
||||||
KeyboardInterrupt = newstdexception("KeyboardInterrupt");
|
|
||||||
AttributeError = newstdexception("AttributeError");
|
|
||||||
IOError = newstdexception("IOError");
|
|
||||||
ZeroDivisionError = newstdexception("ZeroDivisionError");
|
|
||||||
IndexError = newstdexception("IndexError");
|
|
||||||
ValueError = newstdexception("ValueError");
|
|
||||||
KeyError = newstdexception("KeyError");
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue