-
Notifications
You must be signed in to change notification settings - Fork 753
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
Access Modifiers are very restrictive #54
Comments
Hi @rustybox - thanks for the note. Instead of using subclassing for this, would it be better for us to just improve the default exception message in Stateless? |
I think the best possible answer is both. I'm sure there are lots of valid reasons people might want to get into the configuration properties etc, having them as protected keeps the public API the same but gives options to those who wish to extend. The exception message at the moment when a guard condition is not met is a little confusing
It would be nice for this to mention that the trigger is valid but only in some situations. I'll fork and throw something together |
👍 sounds good, thanks! Not ruling out a change to access in the future, but while we can avoid it and handle more scenarios better (like this one) the status quo is probably preferable. Cheers! |
Interesting, it feels like it already works quite well
|
Thanks for all of the detailed scenario information; I don't think we'll move forward on this one in the near future however. Cheers! |
I'm subclassing StateMachine and was hoping I would be able to find a nice way to set up OnUnhandledTrigger so that if a state transition exists for given state and transition but guard conditions are not met that the exception message could contain the text from PermitIf->guardDescription.
Sadly everything I could possibly use is either internal or private.
Would there be any interest in making more use of protected access modifier?
The text was updated successfully, but these errors were encountered: