com.github.jscancella.exceptions.UnparsableVersionException 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 org.slf4j.helpers.MessageFormatter;
/**
* If the version string in the bagit.txt file was not in the form <MAJOR>.<MINOR>
*/
public class UnparsableVersionException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* If the version string in the bagit.txt file was not in the form <MAJOR>.<MINOR>
*
* @param message error message for the user
* @param version the version that was unparsable
*/
public UnparsableVersionException(final String message, final String version){
super(MessageFormatter.format(message, version).getMessage());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy