The TemplateError exception is raised when the compilation of the template fails. This exception then gathers a bunch of intimate details and uses it to report a very precise exception message.
| Constants | |
|---|---|
| SOURCE_ |
|
| Public Attributes | |
|---|---|
| original_ |
|
| Public Methods | |
|---|---|
| backtrace | don’t do anything nontrivial here. Any raised exception from here becomes fatal (and can’t be rescued). |
| clean_ |
|
| file_ |
|
| line_ |
|
| message | |
| new | |
| source_ |
|
| sub_ |
|
| sub_ |
|
| to_ |
|
| Private Methods | |
|---|---|
| compute_ |
|
| source_ |
|
| strip_ |
|
<code/>and<pre/>for code samples.