def raise_(ex=None):
    """
    Raises an exception, to be used inside lambdas, or raise exceptions as function calls
    :param ex: which exception to raise
    :return: raises an exception
    """
    ex = ex or Exception()
    raise ex
