com.github.jscancella.conformance.exceptions.RequiredMetadataFieldNotPresentException 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.conformance.exceptions;
import org.slf4j.helpers.MessageFormatter;
/**
* Class to represent when a specific metadata field is not found
*/
public class RequiredMetadataFieldNotPresentException extends Exception {
private static final long serialVersionUID = 1L;
/**
* Class to represent when a specific metadata field is not found
* @param message error message for the user
* @param bagInfoEntryRequirementKey the key in the bag metadata list of key value pairs
*/
public RequiredMetadataFieldNotPresentException(final String message, final String bagInfoEntryRequirementKey) {
super(MessageFormatter.format(message, bagInfoEntryRequirementKey).getMessage());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy