c.l.w.e.SystemErrorView(LaunchpadView) : class documentation

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

Helper class for views on exceptions.

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
def __init__(self, context, request):
Undocumented
def isSystemError(self):
See zope.app.exception.interfaces import ISystemErrorView

It appears that returning True from this method means the exception is logged as a SiteError.

def computeDebugOutput(self):
Inspect the exception, and set up instance attributes.

self.error_type self.error_object self.traceback_lines self.htmltext self.plaintext

def inside_div(self, html):
Returns the given HTML inside a div of an appropriate class.
def maybeShowTraceback(self):
Return a traceback, but only if it is appropriate to do so.
@property
def oops_id_text(self):
Return the OOPS ID, linkified if appropriate.
def render_as_text(self):
Render the exception as text.

This is used to render exceptions in pagetests.

def __call__(self):
Undocumented
@property
def layer_help(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.