diff options
author | Fred Drake <fdrake@acm.org> | 2000-07-11 17:53:00 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-07-11 17:53:00 +0000 |
commit | 171870e9c7660c24aaf1a0147835d082d7146006 (patch) | |
tree | b7c0a0a1605f0d95b92131ddc21025f6f76c0300 /Include/errcode.h | |
parent | 3cacc954f69ff15461b45b028f39a11e1c54626e (diff) | |
download | cpython-171870e9c7660c24aaf1a0147835d082d7146006.tar.gz |
Create two new exceptions: IndentationError and TabError. These are
used for indentation related errors. This patch includes Ping's
improvements for indentation-related error messages.
Closes SourceForge patches #100734 and #100856.
Diffstat (limited to 'Include/errcode.h')
-rw-r--r-- | Include/errcode.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/errcode.h b/Include/errcode.h index b872e18206..068331708b 100644 --- a/Include/errcode.h +++ b/Include/errcode.h @@ -30,8 +30,10 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #define E_NOMEM 15 /* Ran out of memory */ #define E_DONE 16 /* Parsing complete */ #define E_ERROR 17 /* Execution error */ -#define E_INDENT 18 /* Invalid indentation detected */ -#define E_OVERFLOW 19 /* Node had too many children */ +#define E_TABSPACE 18 /* Invalid indentation detected */ +#define E_OVERFLOW 19 /* Node had too many children */ +#define E_TOODEEP 20 /* Too many indentation levels */ +#define E_DEDENT 21 /* No matching outer block for dedent */ #ifdef __cplusplus } |