'Apply the wrap.'

def __call__(self, func, *args, **kwargs):

    try:
        return func(*args, **kwargs)
    except Exception as err:
        if isinstance(err, self.friendly):
            FriendlyExceptionDlg(str(err))
        raise
