public DevOpsTaskException(DevOpsTask task, string message) : base(message) { Task = task; }
public DevOpsTaskException(DevOpsTask task, string message, Exception inner) : base(message, inner) { Task = task; }
/// <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; }