Package genshi :: Module input :: Class ParseError

Class ParseError

              object --+        
                       |        
exceptions.BaseException --+    
                           |    
        exceptions.Exception --+
                               |
                              ParseError

Exception raised when fatal syntax errors are found in the input being parsed.
Instance Methods
 
__init__(self, message, filename=None, lineno=-1, offset=-1)
Exception initializer.

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details

__init__(self, message, filename=None, lineno=-1, offset=-1)
(Constructor)

 
Exception initializer.
Parameters:
  • message - the error message from the parser
  • filename - the path to the file that was parsed
  • lineno - the number of the line on which the error was encountered
  • offset - the column number where the error was encountered
Overrides: object.__init__