Package com.sk89q.skmcl

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


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

        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

            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

TOP

Related Classes of com.sk89q.skmcl.LauncherException

Copyright © 2018 www.massapicom. 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.