Package com.salesforce.ide.core.remote

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


    private static final Logger logger = Logger.getLogger(LoginRetryAspect.class);

    public void loginRetry(ProceedingJoinPoint proceedingJoinPoint) throws ForceConnectionException, Throwable {
        int numAttempts = 0;
        ForceConnectionException forceConnectionException = null;
        do {
            numAttempts++;

            if (logger.isDebugEnabled()) {
                logger.debug("Attempt [" + numAttempts + "] at executing:\n '"
View Full Code Here


    }

    private void cacheMetadataStubExt(ForceProject forceProject, MetadataStubExt metadataStubExt)
            throws ForceConnectionException, ForceRemoteException {
        if (forceProject == null) {
            throw new ForceConnectionException(" project must be specific to get a connection.");
        }

        metadataStubs.put(forceProject, metadataStubExt);

        if (logger.isDebugEnabled()) {
View Full Code Here

    private static final Logger logger = Logger.getLogger(CrudOperationsRetryAspect.class);

    public Object crudOperationRetry(ProceedingJoinPoint proceedingJoinPoint) throws ForceConnectionException,
            Throwable {
        int numAttempts = 0;
        ForceConnectionException forceConnectionException = null;
        do {
            numAttempts++;

            if (logger.isDebugEnabled()) {
                logger.debug("Attempt [" + numAttempts + "] at executing:\n '"
View Full Code Here

    }

    public Connection storeConnection(ForceProject forceProject) throws ForceConnectionException,
            InsufficientPermissionsException {
        if (forceProject == null) {
            throw new ForceConnectionException("Connection info must be specific to get a connection.");
        }

        connections.remove(forceProject);
        Connection connection = getNewConnection(forceProject);
        connections.put(forceProject, connection);
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

        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) {
            String msg = getConnectionCauseExceptionMessage(connection.getConnectorConfig(), th);
            throw new ForceConnectionException(msg, connection, th);
        } else {
            throw new ForceConnectionException(getStrippedRootCauseMessage(th), connection, th);
        }
    }
View Full Code Here

        throw new InsufficientPermissionsException(connection);
    }

    public static void throwNewConnectionException(String message) throws ForceConnectionException {
        throw new ForceConnectionException(message);
    }
View Full Code Here

TOP

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

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.