summaryrefslogtreecommitdiffstats
path: root/Lib/exceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-17/+17
|
* Move the __getitem__() definition from StandardException to Exception.Fred Drake1997-10-061-1/+3
| | | | | | | | | This allows stuff like this out of the box: try: ... except socket.error, (code, msg): ...
* NumberError => ArithmeticErrorBarry Warsaw1997-09-161-5/+5
|
* Two subtle changes:Guido van Rossum1997-09-161-69/+56
| | | | | | | (1) Introduce Exception as the conceptual root class for all exceptions. (2) Do less work in __init__(), and more in __str__ (store args unchanged).
* #Adapt the doc string to reality.Guido van Rossum1997-09-081-7/+6
|
* Made the 'info' argument to SyntaxError optional, so phase-2 syntaxGuido van Rossum1997-09-051-8/+11
| | | | | | | | | errors are handled (these gave ``TypeError: not enough arguments''). Also changed its __str__() to correct a typo (missing self.) and return str(self.msg) to ensure the result is always string. Also changed the default __str__ to simply return str(self.args).
* New file, which is imported by the built-in module when python isBarry Warsaw1997-08-291-0/+164
started with the -X option. This file contains the definitions for the built-in exception classes.