예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ComprenoTaskProcessingException"/> class with
        /// a specific message that describes the current exception, an inner exception and contains an internal error code.
        /// </summary>
        /// <param name="message">A message that describes the current exception.</param>
        /// <param name="inner">The inner exception.</param>
        /// <param name="errorCode">Internal error code.</param>
        /// <param name="taskErrors">A description of errors that occurred when the task was being processed.</param>
        public ComprenoTaskProcessingException(string message, Exception inner, ErrorCode errorCode, ErrorInfo[] taskErrors)
            : base(message, inner, errorCode)
        {
            if (taskErrors == null)
                throw new ArgumentNullException("taskErrors");

            _taskErrors = taskErrors;
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ComprenoTaskProcessingException"/> class with 
 /// a specific message that describes the current exception and contains an internal error code.
 /// </summary>
 /// <param name="message">A message that describes the current exception.</param>
 /// <param name="errorCode">Internal error code.</param>
 /// <param name="taskErrors">A description of errors that occurred when the task was being processed.</param>
 public ComprenoTaskProcessingException(string message, ErrorCode errorCode, ErrorInfo[] taskErrors)
     : this(message, null, errorCode, taskErrors)
 {
 }