FinalStateMachine/src/main/java/me/bvn13/fsm/exceptions/StateAlreadyExistsException...

11 lines
306 B
Java
Raw Normal View History

2022-07-07 02:15:12 +03:00
package me.bvn13.fsm.exceptions;
/**
* is thrown when trying to add the state which was already added before
*/
public class StateAlreadyExistsException extends FsmException {
public StateAlreadyExistsException(String stateName) {
super(String.format("State exist: %s", stateName));
}
}