Package wtf :: Package app :: Package services :: Module crash
[hide private]
[frames] | no frames]

Module crash

source code

This service provides a global dump_request method, which can be called from anywhere, plus it puts a middleware onto the stack, which catches exceptions and dumps them to disk (by calling dump_request itself).

The crash handler can be configured to display a crash page when dumping (if the response hasn't been started already). If configured in debug mode, the middleware shows a page containing the traceback.


Author: André Malo

Classes [hide private]
  DumpWarning
A non-fatal error occured while writing a dump
  Iterator
Result iterator with crash dumper
  Middleware
Crash middleware
  CrashService
Crash service
Variables [hide private]
  __package__ = 'wtf.app.services'