Package com.salesforce.ide.core.remote

Examples of com.salesforce.ide.core.remote.InvalidLoginException


                return this;
            } else if (cause instanceof InvalidLoginException) {
                // log failure
                logger.warn("Unable to perform upgrade: " + cause.getMessage());

                InvalidLoginException ex = (InvalidLoginException) cause;
                // occurred during project create/update which determines message text
                ex.setShowUpdateCredentialsMessage(true);

                // choose further project create direction
                DialogUtils.getInstance().invalidLoginDialog(ex.getMessage(), null, true);

                updateErrorStatus(UIMessages
                    .getString("ProjectCreateWizard.OrganizationPage.InvalidConnection.message"));

                return this;
View Full Code Here


            } else if (cause instanceof InvalidLoginException) {
                // log failure
                logger.warn("Unable to perform sync check: "
                        + ForceExceptionUtils.getRootCauseMessage(e.getTargetException()));

                InvalidLoginException ex = (InvalidLoginException) e.getTargetException();
                // occurred during project create/update which determines message text
                ex.setShowUpdateCredentialsMessage(false);

                // choose further project create direction
                DialogUtils.getInstance().invalidLoginDialog(ex.getMessage(), null, false);

                updateErrorStatus(UIMessages.getString(
                    "ProjectCreateWizard.OrganizationPage.InvalidConnection.WithHost.message",
                    new String[] { getDeploymentWizardModel().getDestinationOrg().getEndpointServer() }));
View Full Code Here

            } else if (cause instanceof InvalidLoginException) {
                // log failure
                logger.warn("Unable to synchronize resource '" + getSelectedResource().getName() + "' to server: "
                        + cause.getMessage());

                InvalidLoginException ex = (InvalidLoginException) cause;
                // occurred during project create/update which determines message text
                ex.setShowUpdateCredentialsMessage(true);

                // choose further project create direction
                DialogUtils.getInstance().invalidLoginDialog(ex.getMessage(), null, true);
            } else {
                logger.error("Unable to synchronize resource '" + getSelectedResource().getName() + "' to server",
                    ForceExceptionUtils.getRootCause(e));
                Utils.openError(e, true, "Unable to synchronize resource '" + getSelectedResource().getName()
                    + "' to server: " + ForceExceptionUtils.getRootCauseMessage(e));
View Full Code Here

    }

    public static void throwNewConnectionException(Connection connection, Throwable th) throws InvalidLoginException,
            ForceConnectionException {
        if (th instanceof LoginFault) {
            throw new InvalidLoginException(getExceptionMessage(th), getExceptionCode(th), connection, th);
        } else if (th instanceof ApiFault) {
            throw new ForceConnectionException(getExceptionMessage(th), getExceptionCode(th), connection, th);
        } else {
            throw new ForceConnectionException(getStrippedRootCauseMessage(th), connection, th);
        }
View Full Code Here

    }

    public static void handleConnectionException(Connection connection, Throwable th) throws InvalidLoginException,
            ForceConnectionException, InsufficientPermissionsException {
        if (th instanceof LoginFault) {
            throw new InvalidLoginException(getExceptionMessage(th), getExceptionCode(th), connection, th);
        } else if (isInsufficientPermissionsException(th)) {
            throwNewInsufficientPermissionsException(connection, th);
        } else if (th instanceof ApiFault) {
            throw new ForceConnectionException(getExceptionMessage(th), getExceptionCode(th), connection, th);
        } else if (th.getCause() != null && connection.getConnectorConfig() != null) {
View Full Code Here

TOP

Related Classes of com.salesforce.ide.core.remote.InvalidLoginException

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.