Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
        /// <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;
        }