
net.peachjean.commons.base.service.ServiceLookupException Maven / Gradle / Ivy
The newest version!
package net.peachjean.commons.base.service;
public class ServiceLookupException extends RuntimeException
{
public ServiceLookupException(final Class serviceType, final String name)
{
super(String.format("'%s' is not the name of an implementation of service %s nor is it a valid fully qualified class name.", name, serviceType.getName()));
}
public ServiceLookupException(final Class serviceType, final Class extends T> fqcn)
{
super(String.format("Class %s is not an implementation of service %s.", fqcn.getName(), serviceType.getName()));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy