
de.larssh.utils.TooManyElementsException Maven / Gradle / Ivy
package de.larssh.utils;
/**
* Thrown to indicate that an object contains more than one element while either
* no or exactly one element are expected.
*/
public class TooManyElementsException extends RuntimeException {
/**
* Constructs a new {@link TooManyElementsException} with the default detail
* message.
*/
public TooManyElementsException() {
super("Object contains more than one element. Expected either no or exactly one element.", null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy