Skip to content

Propagate original error in RuntimeError.cause #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 1, 2021

Conversation

innermatrix
Copy link
Owner

Currently, if variable A value function throws custom subclass of Error, that custom subclass is lost when the error is converted to RuntimeError, and is subsequently unavailable in the custom inspector. This PR puts the original error in RuntimeError.cause, thereby making it available to custom inspectors. Behavior of default inspector is unchanged.

@innermatrix innermatrix marked this pull request as ready for review December 1, 2021 04:50
@innermatrix innermatrix merged commit 865a2fc into main Dec 1, 2021
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