/// <summary> /// Initializes a new instance of the <see cref="InputDataValidationException" /> class. /// </summary> /// <param name="message">The error message that explains the reason for the exception.</param> /// <param name="paramName">The name of the operation that caused the current exception.</param> /// <param name="error">The error to be reported.</param> /// <param name="fatal">if set to <c>true</c> the list contain fatal erros.</param> public InputDataValidationException(string message, string paramName, string error, bool fatal) : base(message, paramName) { m_Errors = new ErrorsList(); m_Errors.Add(new Warnning(error, fatal)); }
/// <summary> /// Initializes a new instance of the <see cref="InputDataValidationException" /> class. /// </summary> /// <param name="message">The error message that explains the reason for the exception.</param> /// <param name="paramName">The name of the operation that caused the current exception.</param> /// <param name="errors">The list of errors.</param> public InputDataValidationException(string message, string paramName, ErrorsList errors) : base(message, paramName) { m_Errors = errors; }