Skip to content

Enable throwing better exceptions for specific cases of failed translation #20344

Description

@smitpatel

If it cannot rewrite it should just return original tree. Let client eval deal with it.

Activity

  1. smitpatel commented on Mar 19, 2020

    @smitpatel
    ContributorAuthor

    Related #20164

  2. changed the title [-]Entity equality should not be throwing exceptions[/-] [+]Enable throwing better exceptions for specific cases of client evaluation[/+] on Mar 20, 2020
  3. changed the title [-]Enable throwing better exceptions for specific cases of client evaluation[/-] [+]Enable throwing better exceptions for specific cases of failed translation[/+] on Mar 20, 2020
  4. ajcvickers commented on Mar 20, 2020

    @ajcvickers
    Contributor

    From an experience perspective, the more specific we can get about why something can't be translated the better. However, some of the expression visitors are designed not to throw. Therefore, we should look at how to propagate the more detailed information to the place that will throw.

  5. added this to the Backlog milestone on Mar 20, 2020
  6. roji commented on Mar 26, 2020

    @roji
    Member

    One main point is to also avoid duplicating logic from the concerned visitor in order to identify specific patterns and throw the informative exception. If we end up doing this, it may be better to simply expose knobs in the expression visitor, telling it whether to throw or let the tree through. The visitor would throw by default, unless a provider has explicitly disabled that in order to handle things in translation.

  7. 13 remaining items

  8. added a commit that references this issue on Mar 31, 2020
    bb88898
  9. modified the milestones: 5.0.0, on Mar 31, 2020
  10. modified the milestones: , 5.0.0 on Apr 1, 2020
  11. modified the milestones: 5.0.0, on Apr 20, 2020
  12. ajcvickers commented on May 11, 2020

    @ajcvickers
    Contributor

    @smitpatel What are examples of better exception messages that we now throw? Are they included in preview 4?

  13. smitpatel commented on May 11, 2020

    @smitpatel
    ContributorAuthor

    This issue tracked only migrating existing exception messages of EntityEquality rewrite to translation pipeline. No new exception message were added.

  14. ajcvickers commented on May 11, 2020

    @ajcvickers
    Contributor

    @smitpatel Where are we tracking new exception messages?

  15. smitpatel commented on May 11, 2020

    @smitpatel
    ContributorAuthor
  16. modified the milestones: , 5.0.0 on Nov 7, 2020
  17. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions