Skip to content

Add raise_as context manager to convert ValidationError#40

Merged
mcflugen merged 1 commit into
mainfrom
mcflugen/add-raise-as
Apr 15, 2026
Merged

Add raise_as context manager to convert ValidationError#40
mcflugen merged 1 commit into
mainfrom
mcflugen/add-raise-as

Conversation

@mcflugen
Copy link
Copy Markdown
Owner

I've added a new function, raise_as, that converts requireit.ValidationError to some other error.

I thought this could be useful for libraries that use requireit for validation, but want to expose their own exception types rather than requireit.ValidationError.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ffb14c6) to head (51c5dbf).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #40   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          448       460   +12     
=========================================
+ Hits           448       460   +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mcflugen mcflugen merged commit 290eb9f into main Apr 15, 2026
33 checks passed
@mcflugen mcflugen deleted the mcflugen/add-raise-as branch April 15, 2026 02:22
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.

1 participant