Example usage for java.util ServiceConfigurationError ServiceConfigurationError

List of usage examples for java.util ServiceConfigurationError ServiceConfigurationError

Introduction

In this page you can find the example usage for java.util ServiceConfigurationError ServiceConfigurationError.

Prototype

public ServiceConfigurationError(String msg, Throwable cause) 

Source Link

Document

Constructs a new instance with the specified message and cause.

Usage

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);
}