-
Notifications
You must be signed in to change notification settings - Fork 2
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
EnableExceptionAsErrorMessage = false does not actually throw exception, but ignores/supresses it #65
Comments
Well as far as I see they use the file |
@rklec Those two properties work together.
Notice the Expression for each of the two rules. one contains count and the other counts. one should fail if input is count as follows
|
@rklec using actions the results are not the same. regardless of how EnableExceptionAsErrorMessage is set the exception is formatted and stored in action->exception, no runtime exception ever occurs
|
i believe the original author was removing all usage of Rule->Expression in favor of Rule->Actions |
AFAIK you cannot use them together, can you? In any case, yes it's action rules, only.
In case I understand it correctly, that's exactly the issue I am facing, After all, why is it though? Why can
You meant to inverse |
@rklec those properties affect a normal workflow without actions. it is indeed an issue that actions only format the exception and not have the option to throw it as well. i will look into adjusting that for the next release, next couple of days. leaving this issue open so it can be referenced with the solution |
Also asked a related question about this, because it totally confuses me how many places there are to store some exceptions (or exception messages): microsoft#628 |
the code has loads of areas that need improvements. i am working on major changes. in my latest tests i went from 45 minute runtime to less than a minute, just with a couple of changes, major changes. coming soon |
STR
Have any invalid rule or one that somehow else throws an exception.
And have the settings configured as such:
What should happen
EnableExceptionAsErrorMessage = false
is explained on https://microsoft.github.io/RulesEngine/#settings should do the following:Notably
IgnoreException
is not touched, i.e. it is (as per https://microsoft.github.io/RulesEngine/#settings aka the default set tofalse
)What happens
Errors are silently ignored.
More information
I have also indicated this in microsoft#623, see this for a practical example.
System
aka .NET 8
Windows 10
copied/transferred from microsoft#624 (more details there)
The text was updated successfully, but these errors were encountered: