Package genshi :: Module input :: Class ParseError

Class ParseError



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: __getitem__, __str__

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: exceptions.Exception.__init__