def cusolverCheckStatus(status):
    """
    Raise CUSOLVER exception.

    Raise an exception corresponding to the specified CUSOLVER error
    code.

    Parameters
    ----------
    status : int
        CUSOLVER error code.

    See Also
    --------
    CUSOLVER_EXCEPTIONS
    """

    if status != 0:
        try:
            raise CUSOLVER_EXCEPTIONS[status]
        except __HOLE__:
            raise CUSOLVER_ERROR

# Helper functions:
dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/cusolver.py/cusolverCheckStatus