def METHOD_NAME(self, out, fargs):
    try:
        out, status = self.function(out, *fargs)
    except (RuntimeError, ValueError):
        terms.errclear()
        raise
    if status:
        terms.errclear()
        raise ValueError('term evaluation failed! (%s)' % self.name)
    return out, status