Package com.salesforce.ide.core.remote

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


    public static void handleRemoteException(Connection connection, Throwable th)
            throws InsufficientPermissionsException, ForceRemoteException {
        if (isInsufficientPermissionsException(th)) {
            throwNewInsufficientPermissionsException(connection, th);
        } else {
            throw new ForceRemoteException(getStrippedRootCauseMessage(th), connection, th);
        }
    }
View Full Code Here


        Throwable cause = ForceExceptionUtils.getRootCause(e);
        if (cause instanceof ApiFault) {
            ApiFault apiFaultCause = (ApiFault) cause;
            String message = getStrippedExceptionMessage(apiFaultCause.getExceptionMessage());
            message = Messages.getString("General.ApiUnknownException.message", new String[] { message });
            throw new ForceRemoteException(message, connection);
        }
    throw new ForceRemoteException(e, connection);
    }
View Full Code Here

        if (isInsufficientPermissionsException(e)) {
            throwNewInsufficientPermissionsException(connection, e);
        } else if (isApiUnknownException(e)) {
            throwNewApiUnknownException(connection, e);
        } else {
            throw new ForceRemoteException(e, connection);
        }
    }
View Full Code Here

TOP

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

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.