Skip to content

feat: allow Exception declaration as catch-all#302

Merged
marinasundstrom merged 3 commits intomainfrom
codex/add-option-for-throws-attribute-in-settings
Sep 1, 2025
Merged

feat: allow Exception declaration as catch-all#302
marinasundstrom merged 3 commits intomainfrom
codex/add-option-for-throws-attribute-in-settings

Conversation

@marinasundstrom
Copy link
Owner

Summary

  • add treatThrowsExceptionAsCatchRest setting to let [Throws(typeof(Exception))] act as a catch-all
  • skip base-type and redundancy diagnostics when enabled
  • document new option and extend schema and samples

Testing

  • dotnet build CheckedExceptions.sln
  • dotnet test CheckedExceptions.sln

https://chatgpt.com/codex/tasks/task_e_68b583984144832fb54a3a9ddc2f0a96

@marinasundstrom marinasundstrom merged commit d0094b8 into main Sep 1, 2025
1 check passed
@marinasundstrom marinasundstrom deleted the codex/add-option-for-throws-attribute-in-settings branch September 1, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant