Examples of LauncherException


Examples of com.sk89q.skmcl.LauncherException

    private Instance getInstance() throws InterruptedException, LauncherException {
        while (true) {
            try {
                return application.getInstance(environment, offline);
            } catch (OnlineRequiredException e) {
                throw new LauncherException(e, _("launch.onlineModeRequired"));
            } catch (ResolutionException e) {
                if (offline || !e.isOfflineAvailable()) {
                    throw new LauncherException(
                            "Failed to resolve version",
                            _("launch.cannotResolveVersion"));
                } else {
                    LaunchWorker.log.log(Level.WARNING, "Version resolution failure", e);
View Full Code Here

Examples of com.sk89q.skmcl.LauncherException

            updater.addObserver(workUnit);
            updater.call();
        } catch (InterruptedException e) {
            throw e;
        } catch (Exception e) {
            throw new LauncherException(e, _("updater.updateFailed"));
        }
    }
View Full Code Here

Examples of com.sk89q.skmcl.LauncherException

        try {
            return launch(instance);
        } catch (UpdateRequiredException e) {
            // Update required, so we're going to go to the update step
        } catch (IOException e) {
            throw new LauncherException(e, _("launch.launchFailed"));
        }

        // If we're here, then it looks like an update is required

        if (!offline) {
            setLocalizedTitle(_("launch.updatingTitle", profile.toString()));
            step2.push(0, _("launch.updating"));
            update(instance, step2);
        } else {
            throw new LauncherException(
                    "Can't update if offline", _("launch.onlineModeRequired"));
        }

        // Update's done, so let's try launching one more time

        setLocalizedTitle(_("launch.launchingTitle", profile.toString()));
        step3.push(0, _("launch.launching"));

        try {
            return launch(instance);
        } catch (UpdateRequiredException e) {
            // This shouldn't be thrown here, since we've already updated,
            // but perhaps something failed
            throw new LauncherException(e, _("updater.launchFailed"));
        } catch (IOException e) {
            throw new LauncherException(e, _("updater.launchFailed"));
        }
    }
View Full Code Here

Examples of com.sk89q.skmcl.LauncherException

            protected void run() throws Exception {
                try {
                    setVersions(application.getAvailable());
                } catch (IOException e) {
                    dispose();
                    throw new LauncherException(e,
                            _("versionList.failedFetchError"));
                } catch (InterruptedException e) {
                    dispose();
                }
            }
View Full Code Here

Examples of com.skcraft.launcher.LauncherException

            } else {
                UpdateChecker.log.info("No update required.");
                return null;
            }
        } catch (Exception e) {
            throw new LauncherException(e, _("errors.selfUpdateCheckError"));
        }
    }
View Full Code Here

Examples of com.skcraft.launcher.LauncherException

            Thread.sleep(1000);
            LauncherUtils.interruptibleDelete(instance.getDir(), failures);
        }

        if (failures.size() > 0) {
            throw new LauncherException(failures.size() + " failed to delete",
                     _("instanceDeleter.failures", failures.size()));
        }

        return instance;
    }
View Full Code Here

Examples of com.skcraft.launcher.LauncherException

        boolean updateCapable = (instance.getManifestURL() != null);

        if (!online && updateRequired) {
            log.info("Can't update " + instance.getTitle() + " because offline");
            String message = _("updater.updateRequiredButOffline");
            throw new LauncherException("Update required but currently offline", message);
        }

        if (updateDesired && !updateCapable) {
            if (updateRequired) {
                log.info("Update required for " + instance.getTitle() + " but there is no manifest");
                String message = _("updater.updateRequiredButNoManifest");
                throw new LauncherException("Update required but no manifest", message);
            } else {
                log.info("Can't update " + instance.getTitle() + ", but update is not required");
                return instance; // Can't update
            }
        }
View Full Code Here

Examples of com.skcraft.launcher.LauncherException

                .returnContent()
                .saveContent(instance.getManifestPath())
                .asJson(Manifest.class);

        if (manifest.getMinimumVersion() > Launcher.PROTOCOL_VERSION) {
            throw new LauncherException("Update required", _("errors.updateRequiredError"));
        }

        if (manifest.getBaseUrl() == null) {
            manifest.setBaseUrl(instance.getManifestURL());
        }
View Full Code Here

Examples of org.sf.jlaunchpad.LauncherException

      copyConfigFiles("src/main/config");

      configureProxy();
    }
    catch (Exception e) {
      throw new LauncherException(e);
    }

    System.out.println("JLaunchPad is installed.");
  }
View Full Code Here

Examples of org.sf.jlaunchpad.LauncherException

    try {
      load();
    }
    catch (IOException e) {
      throw new LauncherException(e);
    }

    javaHomeField.addCaretListener(this);
    launcherHomeField.addCaretListener(this);
    repositoryHomeField.addCaretListener(this);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.