werkzeug.Aborter

class werkzeug.Aborter(mapping=None, extra=None)[source]

When passed a dict of code -> exception items it can be used as callable that raises exceptions. If the first argument to the callable is an integer it will be looked up in the mapping, if it’s a WSGI application it will be raised in a proxy exception.

The rest of the arguments are forwarded to the exception constructor.

Methods

__init__([mapping, extra])