Examples of ExceptionCode


Examples of com.sforce.soap.partner.fault.ExceptionCode

        String message = null;
        Throwable cause = e;
        while (message == null && cause != null) {
            if (cause instanceof ApiFault) {
                final String exceptionMessage = ((ApiFault) cause).getExceptionMessage();
                final ExceptionCode exceptionCode = ((ApiFault) cause).getExceptionCode();
                message = exceptionCode + ": " + exceptionMessage;
                break;
            }
            cause = cause.getCause();
        }
View Full Code Here

Examples of org.wso2.carbon.business.messaging.salesforce.stub.fault.ExceptionCode

            loginResult = binding.login("udayangaw@wso2.com", "Welcomeusw1233MmrAxtmUed7JGOwbUsfhXg1v",
                                        null);
        } catch (LoginFault ex) {
            // The LoginFault derives from AxisFault

            ExceptionCode exCode = ExceptionCode.Factory.fromValue(ex.getMessage());
            if (exCode == ExceptionCode.FUNCTIONALITY_NOT_ENABLED ||
                exCode == ExceptionCode.INVALID_CLIENT ||
                exCode == ExceptionCode.INVALID_LOGIN ||
                exCode == ExceptionCode.LOGIN_DURING_RESTRICTED_DOMAIN ||
                exCode == ExceptionCode.LOGIN_DURING_RESTRICTED_TIME ||
View Full Code Here

Examples of org.wso2.carbon.business.messaging.salesforce.stub.fault.ExceptionCode

    }

    private boolean checkSessionValidity(Exception ex) {
        boolean isSessionInvalid = false;
        ExceptionCode exCode = ExceptionCode.Factory.fromValue(ex.getMessage());
        if (exCode == ExceptionCode.INVALID_SESSION_ID) {
            removeSession();
            isSessionInvalid = true;
        }
        return isSessionInvalid;
View Full Code Here

Examples of org.wso2.carbon.business.messaging.salesforce.stub.fault.ExceptionCode

            }

        } catch (LoginFault ex) {
            // The LoginFault derives from AxisFault
            removeSession();
            ExceptionCode exCode = ExceptionCode.Factory.fromValue(ex.getMessage());
            if (exCode == ExceptionCode.FUNCTIONALITY_NOT_ENABLED ||
                exCode == ExceptionCode.INVALID_CLIENT ||
                exCode == ExceptionCode.INVALID_LOGIN ||
                exCode == ExceptionCode.LOGIN_DURING_RESTRICTED_DOMAIN ||
                exCode == ExceptionCode.LOGIN_DURING_RESTRICTED_TIME ||
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.