|
||||
File indexing completed on 2025-01-18 10:06:49
0001 #ifndef Py_ERRCODE_H 0002 #define Py_ERRCODE_H 0003 #ifdef __cplusplus 0004 extern "C" { 0005 #endif 0006 0007 /* Error codes passed around between file input, tokenizer, parser and 0008 interpreter. This is necessary so we can turn them into Python 0009 exceptions at a higher level. Note that some errors have a 0010 slightly different meaning when passed from the tokenizer to the 0011 parser than when passed from the parser to the interpreter; e.g. 0012 the parser only returns E_EOF when it hits EOF immediately, and it 0013 never returns E_OK. */ 0014 0015 #define E_OK 10 /* No error */ 0016 #define E_EOF 11 /* End Of File */ 0017 #define E_INTR 12 /* Interrupted */ 0018 #define E_TOKEN 13 /* Bad token */ 0019 #define E_SYNTAX 14 /* Syntax error */ 0020 #define E_NOMEM 15 /* Ran out of memory */ 0021 #define E_DONE 16 /* Parsing complete */ 0022 #define E_ERROR 17 /* Execution error */ 0023 #define E_TABSPACE 18 /* Inconsistent mixing of tabs and spaces */ 0024 #define E_OVERFLOW 19 /* Node had too many children */ 0025 #define E_TOODEEP 20 /* Too many indentation levels */ 0026 #define E_DEDENT 21 /* No matching outer block for dedent */ 0027 #define E_DECODE 22 /* Error in decoding into Unicode */ 0028 #define E_EOFS 23 /* EOF in triple-quoted string */ 0029 #define E_EOLS 24 /* EOL in single-quoted string */ 0030 #define E_LINECONT 25 /* Unexpected characters after a line continuation */ 0031 #define E_BADSINGLE 27 /* Ill-formed single statement input */ 0032 #define E_INTERACT_STOP 28 /* Interactive mode stopped tokenization */ 0033 #define E_COLUMNOVERFLOW 29 /* Column offset overflow */ 0034 0035 #ifdef __cplusplus 0036 } 0037 #endif 0038 #endif /* !Py_ERRCODE_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |