Compare commits

..

No commits in common. "throw-cancelled-exception" and "master" have entirely different histories.

2 changed files with 1 additions and 14 deletions

View file

@ -1,13 +0,0 @@
using System;
namespace SharpCompress.Common;
public class ReaderCancelledException : Exception
{
public ReaderCancelledException(string message)
: base(message) { }
public ReaderCancelledException(string message, Exception inner)
: base(message, inner) { }
}

View file

@ -75,7 +75,7 @@ public abstract class AbstractReader<TEntry, TVolume> : IReader, IReaderExtracti
}
if (Cancelled)
{
throw new ReaderCancelledException("Reader has been cancelled.");
throw new InvalidOperationException("Reader has been cancelled.");
}
if (entriesForCurrentReadStream is null)
{