Package genshi :: Package template :: Module base :: Class TemplateSyntaxError

Class TemplateSyntaxError



exceptions.Exception --+    
                       |    
           TemplateError --+
                           |
                          TemplateSyntaxError
Known Subclasses:
BadDirectiveError

Exception raised when an expression in a template causes a Python syntax error, or the template is not well-formed.

Instance Methods
 
__init__(self, message, filename='<string>', lineno=-1, offset=-1)
Create the exception

Inherited from exceptions.Exception: __getitem__, __str__

Instance Variables

Inherited from TemplateError: filename, lineno, msg, offset

Method Details

__init__(self, message, filename='<string>', lineno=-1, offset=-1)
(Constructor)

 
Create the exception
Parameters:
  • message - the error message
  • filename - the filename of the template
  • lineno - the number of line in the template at which the error occurred
  • offset - the column number at which the error occurred
Overrides: TemplateError.__init__