pl.atom.spring.cqs.query.NoSuitableQueryHandlerException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cqs-spring-boot-starter Show documentation
Show all versions of cqs-spring-boot-starter Show documentation
Easy way to follow CQS principle with spring-boot
The newest version!
package pl.atom.spring.cqs.query;
import pl.atom.spring.cqs.command.Command;
public class NoSuitableQueryHandlerException extends RuntimeException {
public NoSuitableQueryHandlerException(Class extends Query>> queryClass) {
super("No suitable QueryHandler found for: " + queryClass.getCanonicalName());
}
public > NoSuitableQueryHandlerException(Q query) {
super("No suitable QueryHandler found for: " + query.getClass().getCanonicalName());
}
}