/// <summary> /// Constructs a new instance of <see cref="BatchComprenoTaskResult"/> with Faulted result. /// </summary> /// <param name="filePath">Full path to the file.</param> /// <param name="exception">Exception that occurred during processing.</param> public BatchComprenoTaskResult(string filePath, ComprenoException exception) { if (exception == null) throw new ArgumentNullException("exception"); FilePath = filePath; Exception = exception; IsFaulted = true; }
/// <summary> /// Initializes a new instance of the class <see cref="ClassifiedFile"/> with Faulted result. /// </summary> /// <param name="fileName">Путь, имя или внутренний для системы идентификатор файла.</param> /// <param name="exception">Исключение, которое возникло во время классификации данного файла.</param> public ClassifiedFile(string fileName, ComprenoException exception) : this(fileName) { if (exception == null) throw new ArgumentNullException("exception"); IsFaulted = true; Exception = exception; }