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
Upon selecting the specific child, that child TreeNode could have an Action that throws YourCustomException. The TreeWalkerSession.WalkTree will throw an ActionTimeoutException with YourCustomException as the InnerException.
If you wanted to throw the exception during the child selection itself (without visiting the next node), then you could do that as well. Just throw the exception in the ShouldSelect via the UserContext if the statement is true. The TreeWalkerSession.WalkTree will throw an EvaluateDynamicPropertyException with an InnerException containing YourCustomException in this case. The difference here is that the persisted CurrentTreeNode will not be updated, since you didn't visit the Child node yet.
Let me know if that does/doesn't answer your question.
Thanks,
--Travis
I have an use case where if a specific child selector becomes true, I want to throw an exception. is there a way to do this today?
The text was updated successfully, but these errors were encountered: