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

11 lines
351 B
Java

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