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

Part of lp.services.webapp.error View In Hierarchy

Known subclasses: lp.services.webapp.error.DisconnectionErrorView, lp.services.webapp.error.InvalidBatchSizeView, lp.services.webapp.error.NoReferrerErrorView, lp.services.webapp.error.NotFoundView, lp.services.webapp.error.OpenIdDiscoveryFailureView, lp.services.webapp.error.ProtocolErrorView, lp.services.webapp.error.RequestExpiredView, lp.services.webapp.error.TranslationUnavailableView, lp.services.webapp.error.UnexpectedFormDataView, lp.services.webapp.login.UnauthorizedView

Helper class for views on exceptions.

Also, sets a 500 response code.

Method __init__ Undocumented
Method isSystemError See zope.browser.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 __call__ Undocumented
Method layer_help Undocumented
def __init__(self, context, request):
Undocumented
def isSystemError(self):
See zope.browser.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

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 __call__(self):
Undocumented
@property
def layer_help(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-02-21 00:00:16.