aboutsummaryrefslogtreecommitdiffstats
path: root/mako/exceptions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-11-12 13:06:43 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-11-12 13:06:43 -0500
commit5d4575aff2310268bfd439b514b778a7eff0fbf0 (patch)
treef39f3b3d256c964d85958642cda6def100004131 /mako/exceptions.py
parentca21a5353a4c88f3477a53f2f45cd9ca280b0479 (diff)
downloadexternal_python_mako-5d4575aff2310268bfd439b514b778a7eff0fbf0.tar.gz
external_python_mako-5d4575aff2310268bfd439b514b778a7eff0fbf0.tar.bz2
external_python_mako-5d4575aff2310268bfd439b514b778a7eff0fbf0.zip
- initial sphinx buildout. only includes "usage" so far, needs more work.
Diffstat (limited to 'mako/exceptions.py')
-rw-r--r--mako/exceptions.py27
1 files changed, 2 insertions, 25 deletions
diff --git a/mako/exceptions.py b/mako/exceptions.py
index b9df87e..5976d65 100644
--- a/mako/exceptions.py
+++ b/mako/exceptions.py
@@ -48,33 +48,10 @@ class TopLevelLookupException(TemplateLookupException):
pass
class RichTraceback(object):
- """pulls the current exception from the sys traceback and extracts
+ """Pulls the current exception from the sys traceback and extracts
Mako-specific template information.
- Usage:
-
- RichTraceback()
-
- Properties:
-
- error - the exception instance.
- message - the exception error message as unicode
- source - source code of the file where the error occured.
- if the error occured within a compiled template,
- this is the template source.
- lineno - line number where the error occured. if the error
- occured within a compiled template, the line number
- is adjusted to that of the template source
- records - a list of 8-tuples containing the original
- python traceback elements, plus the
- filename, line number, source line, and full template source
- for the traceline mapped back to its originating source
- template, if any for that traceline (else the fields are None).
- reverse_records - the list of records in reverse
- traceback - a list of 4-tuples, in the same format as a regular
- python traceback, with template-corresponding
- traceback records replacing the originals
- reverse_traceback - the traceback list in reverse
+ See the usage examples in :ref:`handling_exceptions`.
"""
def __init__(self, error=None, traceback=None):