Skip to content

How to prevent a monitor to receive an unexpected event #376

Answered by ankushdesai
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Note that a spec machine is observing a sequence of events happening in the system. Another way to think about monitors is also that a monitor accepts a set of sequences of events that can happen in the system (events that lead to unhandled event exception are sequence or executions that are rejected by the Monitor). So the execution you mentioned above is not accepted by your monitor and hence leads to an error. It is required that a monitor accepts all executions (over the events observed) that can happen in the system.

Hope this helps!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant