/// <summary> /// Raises an exception given an Exception instance /// </summary> /// <param name="ex"></param> private void RaiseException(Exception ex) { var devOpsEx = new DevOpsTaskException(ex.Message); throw devOpsEx; }
/// <summary> /// Raises an exception given a DevOpsTask and Exception instance /// </summary> /// <param name="task"></param> /// <param name="ex"></param> private void RaiseException(DevOpsTask task, Exception ex = null) { var devOpsEx = new DevOpsTaskException(task, ex.Message); throw devOpsEx; }