
uk.ac.ebi.interpro.scan.jms.exception.InvalidInputException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jms-implementation Show documentation
Show all versions of jms-implementation Show documentation
InterProScan JMS Implementation Module
The newest version!
package uk.ac.ebi.interpro.scan.jms.exception;
import java.util.Set;
/**
* Invalid user input into InterProScan.
*/
public class InvalidInputException extends Exception {
public InvalidInputException(String message) {
super(message);
}
public InvalidInputException(Set messages) {
this(flattenMessages(messages));
}
private static String flattenMessages(Set messages) {
StringBuilder sb = new StringBuilder();
for (String message : messages) {
sb.append(message).append("\n");
}
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy