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

com.github.jscancella.conformance.exceptions.BagitVersionIsNotAcceptableException Maven / Gradle / Ivy

Go to download

This is a software library intended to support the creation, manipulation, and validation of "bags" from the bagit specification. It currently supports version 0.93 through 1.0.

There is a newer version: 5.2
Show newest version
package com.github.jscancella.conformance.exceptions;

import java.util.List;

import org.slf4j.helpers.MessageFormatter;

import com.github.jscancella.domain.Version;

/**
 * Class to represent when the bag's version is not in the acceptable list of versions
 */
public class BagitVersionIsNotAcceptableException extends Exception {
private static final long serialVersionUID = 1L;
  
/**
 * Class to represent when the bag's version is not in the acceptable list of versions
 * 
 * @param message the message to give to the user
 * @param version the version that was found
 * @param acceptableVersions the list of acceptable versions
 */
  public BagitVersionIsNotAcceptableException(final String message, final Version version, final List acceptableVersions) {
    super(MessageFormatter.format(message, version, acceptableVersions).getMessage());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy