mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-12 05:25:03 +00:00
[PR #778] [MERGED] Throw ReaderCancelledException on reader cancelled #1217
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/778
Author: @pathartl
Created: 11/11/2023
Status: ✅ Merged
Merged: 11/13/2023
Merged by: @adamhathcock
Base:
master← Head:throw-cancelled-exception📝 Commits (1)
ed4099eThrow ReaderCancelledException on reader cancelled📊 Changes
2 files changed (+14 additions, -1 deletions)
View changed files
➕
src/SharpCompress/Common/ReaderCancelledException.cs(+13 -0)📝
src/SharpCompress/Readers/AbstractReader.cs(+1 -1)📄 Description
I needed a way to gracefully handle a cancellation. It would have been much easier to catch a specific type of exception instead of relying on the message of
InvalidOperationException.So, here you go!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.