mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #990] [MERGED] Make all library exceptions inherit from SharpCompressException #1408
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/990
Author: @Copilot
Created: 10/28/2025
Status: ✅ Merged
Merged: 10/28/2025
Merged by: @adamhathcock
Base:
master← Head:copilot/add-common-exception-type📝 Commits (4)
6b7c6beInitial plan46672ebUpdate exceptions to inherit from SharpCompressException2f27f1eComplete exception hierarchy implementation210978eFormat code with CSharpier📊 Changes
3 files changed (+121 additions, -4 deletions)
View changed files
📝
src/SharpCompress/Compressors/LZMA/ICoder.cs(+3 -2)📝
src/SharpCompress/Compressors/Xz/XZIndexMarkerReachedException.cs(+2 -2)➕
tests/SharpCompress.Test/ExceptionHierarchyTests.cs(+116 -0)📄 Description
Summary:
Successfully implemented library-wise exception type hierarchy. All SharpCompress exceptions now inherit from
SharpCompressException, allowing users to catch library-specific exceptions without masking unrelated errors.Changes made:
DataErrorException(LZMA) - now inherits fromSharpCompressExceptionInvalidParamException(LZMA) - now inherits fromSharpCompressExceptionXZIndexMarkerReachedException(XZ) - now inherits fromSharpCompressExceptionTesting:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.