com.github.jscancella.exceptions.MissingPayloadDirectoryException 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;
/**
* The payload directory is a required file. This class represents the error if it is not found.
*/
public class MissingPayloadDirectoryException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* The payload directory is a required file. This class represents the error if it is not found.
*
* @param message error message for the user
* @param path the missing path
*/
public MissingPayloadDirectoryException(final String message, final Path path){
super(MessageFormatter.format(message, path).getMessage());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy