A common error format is needed for the evaluate function #3060
Replies: 4 comments
-
Thanks for your suggestion. I guess we can improve there. Currently there are a couple of errors like Sharukh do you have any idea on how to unify this? Or would it be enough to document these properties? |
Beta Was this translation helpful? Give feedback.
-
I think we can implement a common error handler for the Evaluation side as of initial stage and then it could be extended to other modules, Hope it makes sense |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what you mean with an error handler, can you elaborate or show some pseudo code to explain what you mean? Right now Errors are thrown when there is an issue, and you can catch them with try/catch. |
Beta Was this translation helpful? Give feedback.
-
While consistency in error formats would be very good, there is not yet a clear actionable proposal here, so moving this to Discussions. See also #3055 which touches on error formats. |
Beta Was this translation helpful? Give feedback.
-
Currently, the errors are being thrown in different structures one may be in an array the other in an object model
It's more suitable to have a common data structure for the errors being thrown
error for
'2C + '
some may be in array in nature, the other may have a Data Object inside it
error for missing a binding parameter on the expression
Beta Was this translation helpful? Give feedback.
All reactions