Package genshi :: Package template :: Module base :: Class BadDirectiveError |

# Class BadDirectiveError

                  object --+
                           |
    exceptions.BaseException --+
                               |
            exceptions.Exception --+
                                   |
                       TemplateError --+
                                       |
                     TemplateSyntaxError --+
                                           |
                                          BadDirectiveError

Exception raised when an unknown directive is encountered when parsing a template.

An unknown directive is any attribute using the namespace for directives, with a local name that doesn't match any registered directive.

Instance Methods
__init__(self, name, filename=None, lineno=-1) Create the exception |
Inherited from `exceptions.Exception`: `__new__` Inherited from `exceptions.BaseException`: `__delattr__`, `__getattribute__`, `__getitem__`, `__getslice__`, `__reduce__`, `__repr__`, `__setattr__`, `__setstate__`, `__str__` Inherited from `object`: `__hash__`, `__reduce_ex__`

Instance Variables
Inherited from `TemplateError`: `filename`, `lineno`, `msg`, `offset`

Properties
Inherited from `exceptions.BaseException`: `args`, `message` Inherited from `object`: `__class__`

Method Details

### __init__(self, name, filename=None, lineno=-1) (Constructor) |
Create the exception Parameters: `name` - the name of the directive `filename` - the filename of the template `lineno` - the number of line in the template at which the error occurred Overrides: object.__init__