Skip to content

refactor(exceptions)!: unify rejection hierarchy - #282

Merged
thomhurst merged 1 commit into
mainfrom
issue-202-exception-hierarchy
Aug 25, 2026
Merged

refactor(exceptions)!: unify rejection hierarchy#282
thomhurst merged 1 commit into
mainfrom
issue-202-exception-hierarchy

Conversation

@thomhurst

Copy link
Copy Markdown
Owner

Summary

  • add ExecutionRejectedException as the common base for circuit-open, rate-limit, concurrency-limit, and timeout rejections
  • expose shared RetryAfter metadata and conventional exception constructors while preserving timeout/default-handling behavior
  • keep satellite exception base classes domain-specific, update public API baselines/docs, and add reflection/behavior contracts

Closes #202

Validation

  • dotnet build Kevlar.slnx -c Release
  • dotnet run --project tests/Kevlar.Tests -c Release -f net8.0 --no-build -- --timeout 5m (892 passed)
  • dotnet run --project tests/Kevlar.Tests -c Release -f net10.0 --no-build -- --timeout 5m (918 passed)
  • dotnet run --project tests/Kevlar.Chaos.Tests -c Release -f net10.0 --no-build -- --timeout 5m (35 passed)
  • dotnet run --project tests/Kevlar.Testing.Tests -c Release -f net10.0 --no-build -- --timeout 5m (52 passed)
  • dotnet run --project tests/Kevlar.IntegrationTests -c Release --no-build -- --timeout 5m (133 passed)
  • dotnet run --project tests/Kevlar.NetStandard.Tests -c Release -f net10.0 --no-build -- --timeout 5m (11 passed)
  • pwsh scripts/Verify-Docs.ps1
  • pwsh scripts/Verify-DocSnippets.ps1 -PackagesPath artifacts/package/release -Version 1.0.0-exceptions (135 snippets, both targets)
  • dnx dotnet-inspect confirmed the emitted hierarchy and constructor counts
  • Verify-Packages.ps1: all SourceLink checks passed; Windows-local deterministic repeat hashing diverged for Kevlar.Extensions.Grpc.dll (the package gate runs on Ubuntu CI)

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 277f13b7-c827-4557-a499-c5b17adf6d10


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thomhurst
thomhurst merged commit 2802946 into main Aug 25, 2026
10 checks passed
@thomhurst
thomhurst deleted the issue-202-exception-hierarchy branch August 25, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(exceptions): common rejection base with RetryAfter; consistent base classes and constructors

1 participant