def _return_exception_params(*args, **kwargs):
    """
    Get the exception parameters from the list
    :param args: input args
    :param kwargs: input names args
    :return: the args and error for the exception
    """
    arg_list = list(args)
    error = kwargs.pop('error', None)
    return arg_list, error