List of usage examples for java.util ServiceConfigurationError ServiceConfigurationError
public ServiceConfigurationError(String msg, Throwable cause)
From source file:com.github.thorqin.webapi.mail.MailService.java
public MailService(WebApplication application, String config) { try {//from w w w .j a v a 2 s .c o m serverConfig = new MailConfig(application, config); } catch (IOException | URISyntaxException | RuntimeException ex) { throw new ServiceConfigurationError("Initialize MailService failed.", ex); } }
From source file:hm.binkley.util.ServiceBinder.java
private static <R> R fail(final Class<?> service, final String message, final Exception cause) { throw new ServiceConfigurationError(service.getName() + ": " + message, cause); }
From source file:hm.binkley.util.ServiceBinder.java
private static <R> R fail(final Class<?> service, final URL config, final String message, final Exception cause) { throw new ServiceConfigurationError(service.getName() + ": " + config + ": " + message, cause); }