Skip to content
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

Get rid of BuildError and adopt solution from Gin, which uses subclassing to attach some additional error information. #171

Merged
merged 0 commits into from Oct 28, 2022

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Oct 13, 2022

Get rid of BuildError and adopt solution from Gin, which uses subclassing to attach some additional error information.

We have chosen to go with this slightly magical approach, since the stack traces from Python's raise new_error from old_error feature shows the user Fiddle internal stack trace lines first, even when the error is clearly from user code.

@google-cla
Copy link

google-cla bot commented Oct 13, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service bot force-pushed the test_480975837 branch 5 times, most recently from aba3d84 to e870c45 Compare October 21, 2022 00:07
@copybara-service copybara-service bot changed the title Get rid of BuildError -- just let original exceptions be raised directly, since Get rid of BuildError and adopt solution from Gin, which uses subclassing to attach some additional error information. Oct 21, 2022
@copybara-service copybara-service bot force-pushed the test_480975837 branch 6 times, most recently from 595509a to b55e4f4 Compare October 28, 2022 18:42
@copybara-service copybara-service bot closed this Oct 28, 2022
@copybara-service copybara-service bot merged commit a4be791 into main Oct 28, 2022
@copybara-service copybara-service bot deleted the test_480975837 branch October 28, 2022 18:54
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.

None yet

0 participants