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

11 lines
351 B
Java
Raw Normal View History

2022-07-07 02:15:12 +03:00
package me.bvn13.fsm.exceptions;
/**
2022-07-07 23:32:53 +03:00
* is thrown in case of adding a transition <code>FROM - TO</code>, but it is already defined
2022-07-07 02:15:12 +03:00
*/
public class ConditionAlreadyExistsException extends FsmException {
public ConditionAlreadyExistsException(String from, String to) {
super(String.format("Condition exists: %s -> %s", from, to));
}
}