Skip to content

[18/n] tensor engine: Simplify CallFunctionError #552

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

Closed
wants to merge 1 commit into from

Conversation

zdevito
Copy link
Contributor

@zdevito zdevito commented Jul 16, 2025

Stack from ghstack (oldest at bottom):

The only case we every 'catch' is DependentError. Everything else is just a textural description. So this collapses those cases into just the two cases.

This retains the enum variants as function calls so that we can also reify them again if we need to catch them but having them obscures the places where DependentError needs to be handled differently.

Differential Revision: D78363663

NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!

The only case we every 'catch' is DependentError. Everything else is just a textural description. So this collapses those cases into just the two cases.

This retains the enum variants as function calls so that we can also reify them again if we need to catch them but having them obscures the places where DependentError needs to be handled differently.

Differential Revision: [D78363663](https://our.internmc.facebook.com/intern/diff/D78363663/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D78363663/)!

[ghstack-poisoned]
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 16, 2025
zdevito added a commit that referenced this pull request Jul 16, 2025
The only case we every 'catch' is DependentError. Everything else is just a textural description. So this collapses those cases into just the two cases.

This retains the enum variants as function calls so that we can also reify them again if we need to catch them but having them obscures the places where DependentError needs to be handled differently.

Differential Revision: [D78363663](https://our.internmc.facebook.com/intern/diff/D78363663/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D78363663/)!

ghstack-source-id: 296602704
Pull Request resolved: #552
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D78363663

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in be4c97d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants