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

com.github.jscancella.conformance.exceptions.FetchFileNotAllowedException 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.nio.file.Path;

import org.slf4j.helpers.MessageFormatter;

/**
 * Class to represent when a fetch file is found in a bag but is not allowed according to the bagit profile
 */
public class FetchFileNotAllowedException extends Exception {
private static final long serialVersionUID = 1L;
  
/**
 * Class to represent when a fetch file is found in a bag but is not allowed according to the bagit profile
 * 
 * @param message the message to give to the user
 * @param rootDir the bag root directory
 */
  public FetchFileNotAllowedException(final String message, final Path rootDir) {
    super(MessageFormatter.format(message, rootDir).getMessage());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy