OpenQuizz
Une application de gestion des contenus pédagogiques
Aborter Class Reference
Inheritance diagram for Aborter:
Collaboration diagram for Aborter:

Public Member Functions

def __init__ (self, mapping=None, extra=None)
 
def __call__ (self, code, *args, **kwargs)
 

Data Fields

 mapping
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  mapping = None,
  extra = None 
)

Member Function Documentation

◆ __call__()

def __call__ (   self,
  code,
args,
**  kwargs 
)

Field Documentation

◆ mapping

mapping

The documentation for this class was generated from the following file: