All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jobrunr.jobs.states.IllegalJobStateChangeException Maven / Gradle / Ivy

Go to download

An easy way to perform background processing on the JVM. Backed by persistent storage. Open and free for commercial use.

There is a newer version: 7.3.1
Show newest version
package org.jobrunr.jobs.states;

public class IllegalJobStateChangeException extends IllegalStateException {

    private final StateName from;
    private final StateName to;

    public IllegalJobStateChangeException(StateName from, StateName to) {
        super("A job cannot change state from " + from + " to " + to + ".");
        this.from = from;
        this.to = to;
    }

    public StateName getFrom() {
        return from;
    }

    public StateName getTo() {
        return to;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy