CustomTypes and expression avaluation #662
Unanswered
thomasmcneill
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I implement a custom type and it works as expected but what isn't expected is when there is a typo or invalid parameter to the custom type it just returns false rather than throwing an exception.
Example
Correct
Rule1.Expression = "RuleUtils.SetChangeType(input1) == true ";
Invalid
Rule1.Expression = "RuleUtils.SetChangeType(input1.Name) == true ";
If someone creates the expression and it doesn't find the right function to call in the static class it just fails it. Is there a way for it to throw an exception instead so we know something is wrong with the rule?
Beta Was this translation helpful? Give feedback.
All reactions