(verbosity=DEFAULTVERBOSITY, mask=DEFAULTMASK)
Install the exception handling delegate that will log every exception
    matching the given mask with the given verbosity.
Install the exception handling delegate that will log every exception
    matching the given mask with the given verbosity.
Install the exception handling delegate that will log every exception matching the given mask with the given verbosity .
def installExceptionHandler(verbosity=DEFAULTVERBOSITY, mask=DEFAULTMASK):
    """
    Install the exception handling delegate that will log every exception
    matching the given mask with the given verbosity.
    """
    # we need to retain this, cause the handler doesn't
    global _exceptionHandlerDelegate
    delegate = PyObjCDebuggingDelegate.alloc().initWithVerbosity_(verbosity)
    NSExceptionHandler.defaultExceptionHandler().setExceptionHandlingMask_(mask)
    NSExceptionHandler.defaultExceptionHandler().setDelegate_(delegate)
    _exceptionHandlerDelegate = delegate
def installExceptionHandler ( verbosity = DEFAULTVERBOSITY , mask = DEFAULTMASK ) : # we need to retain this, cause the handler doesn't global _exceptionHandlerDelegate delegate = PyObjCDebuggingDelegate . alloc ( ) . initWithVerbosity_ ( verbosity ) NSExceptionHandler . defaultExceptionHandler ( ) . setExceptionHandlingMask_ ( mask ) NSExceptionHandler . defaultExceptionHandler ( ) . setDelegate_ ( delegate ) _exceptionHandlerDelegate = delegate