Package genshi :: Package template :: Module base :: Class TemplateError

Class TemplateError



exceptions.Exception --+
                       |
                      TemplateError
Known Subclasses:
loader.TemplateNotFound, TemplateRuntimeError, TemplateSyntaxError

Base exception class for errors related to template processing.

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

Inherited from exceptions.Exception: __getitem__, __str__

Instance Variables
  msg
the error message string
  filename
the name of the template file
  lineno
the number of the line containing the error
  offset
the offset on the line
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: exceptions.Exception.__init__