13.5.2 ExpatError Exceptions
ExpatError exceptions have a number of interesting
attributes:
- code
-
Expat's internal error number for the specific error. This will
match one of the constants defined in the
errors
object from
this module.
New in version 2.1.
- lineno
-
Line number on which the error was detected. The first line is
numbered
1
.
New in version 2.1.
- offset
-
Character offset into the line where the error occurred. The first
column is numbered
0
.
New in version 2.1.
Release 2.3.3, documentation updated on December 19, 2003.
See About this document... for information on suggesting changes.