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

no.unit.nva.model.exceptions.InvalidPublicationStatusTransitionException Maven / Gradle / Ivy

There is a newer version: 0.23.2
Show newest version
package no.unit.nva.model.exceptions;

import no.unit.nva.model.PublicationStatus;

public class InvalidPublicationStatusTransitionException extends Exception {

    public static final String ERROR_MSG_TEMPLATE = "Invalid Publication status transition: %s -> %s";

    public InvalidPublicationStatusTransitionException(PublicationStatus currentStatus, PublicationStatus nextStatus) {
        super(String.format(ERROR_MSG_TEMPLATE, currentStatus.getValue(), nextStatus.getValue()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy