You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable throwing better exceptions for specific cases of failed translation #20344
changed the title [-]Entity equality should not be throwing exceptions[/-][+]Enable throwing better exceptions for specific cases of client evaluation[/+]on Mar 20, 2020
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
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.
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.
Activity
smitpatel commentedon Mar 19, 2020
Related #20164
[-]Entity equality should not be throwing exceptions[/-][+]Enable throwing better exceptions for specific cases of client evaluation[/+][-]Enable throwing better exceptions for specific cases of client evaluation[/-][+]Enable throwing better exceptions for specific cases of failed translation[/+]ajcvickers commentedon Mar 20, 2020
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.
roji commentedon Mar 26, 2020
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.
13 remaining items
Query: Rewrite Entity Equality during translation phase
ajcvickers commentedon May 11, 2020
@smitpatel What are examples of better exception messages that we now throw? Are they included in preview 4?
smitpatel commentedon May 11, 2020
This issue tracked only migrating existing exception messages of EntityEquality rewrite to translation pipeline. No new exception message were added.
ajcvickers commentedon May 11, 2020
@smitpatel Where are we tracking new exception messages?
smitpatel commentedon May 11, 2020
#20612