Пример #1
0
 public DevOpsTaskException(DevOpsTask task, string message) : base(message)
 {
     Task = task;
 }
Пример #2
0
 public DevOpsTaskException(DevOpsTask task, string message, Exception inner) : base(message, inner)
 {
     Task = task;
 }
Пример #3
0
        /// <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;
        }