„Open“ doesn’t implement the method „move“ (github.com/mnlwldr/State-Pattern/b...).
That means when you call the method „move“ it throws an exception because in this state, move is not allowed.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I don't get it. Where did you implement the logic which says that the door must be closed before the move state can be set?
„Open“ doesn’t implement the method „move“ (github.com/mnlwldr/State-Pattern/b...).
That means when you call the method „move“ it throws an exception because in this state, move is not allowed.