cz.encircled.joiner.exception.JoinerExceptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joiner-core Show documentation
Show all versions of joiner-core Show documentation
Joiner is a Java library which allows to create type-safe JPA queries.
package cz.encircled.joiner.exception;
/**
* Basic class for all Joiner runtime exceptions
*
* @author Kisel on 25.01.2016.
*/
public class JoinerExceptions {
public static JoinerException entityNotFound() {
return new JoinerException("FindOne returned no result, exactly 1 is expected");
}
public static JoinerException multipleEntitiesFound() {
return new JoinerException("FindOne returned multiple result");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy