def fail(value, context_info=None, src_exception=None, err_condition=None):
if isinstance(value, Exception):<EOL><INDENT>e = as_DAVError(value)<EOL><DEDENT>else:<EOL><INDENT>e = DAVError(value, context_info, src_exception, err_condition)<EOL><DEDENT>_logger.error("<STR_LIT>".format(e.get_user_info()))<EOL>raise e<EOL>
Wrapper to raise (and log) DAVError.