Part of canonical.launchpad.webapp.error View In Hierarchy
Known subclasses: canonical.launchpad.webapp.error.InvalidBatchSizeView, canonical.launchpad.webapp.error.NoReferrerErrorView, canonical.launchpad.webapp.error.NotFoundView, canonical.launchpad.webapp.error.ProtocolErrorView, canonical.launchpad.webapp.error.ReadOnlyErrorView, canonical.launchpad.webapp.error.RequestExpiredView, canonical.launchpad.webapp.error.TranslationUnavailableView, canonical.launchpad.webapp.login.UnauthorizedView
Implements interfaces: zope.app.exception.interfaces.ISystemErrorView
Also, sets a 500 response code.
| Method | __init__ | Undocumented |
| Method | isSystemError | See zope.app.exception.interfaces import ISystemErrorView |
| Method | computeDebugOutput | Inspect the exception, and set up instance attributes. |
| Method | inside_div | Returns the given HTML inside a div of an appropriate class. |
| Method | maybeShowTraceback | Return a traceback, but only if it is appropriate to do so. |
| Method | oops_id_text | Return the OOPS ID, linkified if appropriate. |
| Method | render_as_text | Render the exception as text. |
| Method | __call__ | Undocumented |
| Method | layer_help | Undocumented |
It appears that returning True from this method means the exception is logged as a SiteError.
self.error_type self.error_object self.traceback_lines self.htmltext self.plaintext
This is used to render exceptions in pagetests.