class documentation

class Aborter:

View In Hierarchy

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.

Method __call__ Undocumented
Method __init__ Undocumented
Instance Variable mapping Undocumented
def __call__(self, code, *args, **kwargs):

Undocumented

Parameters
code:t.Union[int, Response]Undocumented
*args:t.AnyUndocumented
**kwargs:t.AnyUndocumented
Returns
te.NoReturnUndocumented
def __init__(self, mapping=None, extra=None):

Undocumented

Parameters
mapping:t.Optional[t.Dict[int, t.Type[HTTPException]]]Undocumented
extra:t.Optional[t.Dict[int, t.Type[HTTPException]]]Undocumented
mapping =

Undocumented