border="0" height="32"
alt="Previous Page" width="32">
border="0" height="32"
alt="Up One Level" width="32">
Python Library Reference
Next: 13.5.3 Example
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.
See About this document... for information on suggesting changes.