Search in sources :

Example 1 with CodeDownloadException

use of com.google.gwt.core.client.CodeDownloadException in project gerrit by GerritCodeReview.

the class PluginLoader method hadFailures.

private boolean hadFailures() {
    boolean failed = false;
    for (Plugin plugin : Natives.asList(plugins().values())) {
        if (!plugin.success()) {
            failed = true;
            Exception e = plugin.failure();
            String msg;
            if (e != null && e instanceof CodeDownloadException) {
                msg = Gerrit.M.cannotDownloadPlugin(plugin.url());
            } else {
                msg = Gerrit.M.pluginFailed(plugin.name());
            }
            hide(true);
            new ErrorDialog(msg).center();
        }
    }
    return failed;
}
Also used : ErrorDialog(com.google.gerrit.client.ErrorDialog) CodeDownloadException(com.google.gwt.core.client.CodeDownloadException) CodeDownloadException(com.google.gwt.core.client.CodeDownloadException)

Aggregations

ErrorDialog (com.google.gerrit.client.ErrorDialog)1 CodeDownloadException (com.google.gwt.core.client.CodeDownloadException)1