def _onerror_param_handler(input):
    if input not in (ONERROR_CONTINUE, ONERROR_STOP):
        raise ArgumentError.pyexc(
            "on_error must be 'continue' or 'stop'", input)

    return input
dataset/ETHPy150Open couchbase/couchbase-python-client/couchbase/views/params.py/_onerror_param_handler/original