com.github.jscancella.exceptions.FetchFileDoesNotExistException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bagging Show documentation
Show all versions of bagging Show documentation
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.
package com.github.jscancella.exceptions;
import java.nio.file.Path;
import org.slf4j.helpers.MessageFormatter;
import com.github.jscancella.domain.Bag;
/**
* The {@link Bag} object should contain the fetch.txt file,
* this class represents the error when fetch.txt doesn't exist.
*/
public class FetchFileDoesNotExistException extends Exception {
private static final long serialVersionUID = 1L;
/**
* The {@link Bag} object should contain the fetch.txt file,
* this class represents the error when fetch.txt doesn't exist.
*
* @param message error message for the user
* @param rootDir the bag root directory
*/
public FetchFileDoesNotExistException(final String message, final Path rootDir){
super(MessageFormatter.format(message, rootDir).getMessage());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy