Examples of CougarFault


Examples of com.betfair.cougar.core.api.fault.CougarFault

            }
        }

        final FaultDetail fd=new FaultDetail(faultString, faultParams);

        return new CougarFault() {
            @Override
            public String getErrorCode() {
                return faultString;
            }
View Full Code Here

Examples of com.betfair.cougar.core.api.fault.CougarFault

            }
        }

        final FaultDetail fd=new FaultDetail(faultString, faultParams);

        return new CougarFault() {
            @Override
            public String getErrorCode() {
                return faultString;
            }
View Full Code Here

Examples of com.betfair.cougar.core.api.fault.CougarFault

    public HTTPErrorToCougarExceptionTransformer(FaultUnMarshaller faultUnMarshaller) {
        super(faultUnMarshaller);
    }

    public Exception convert(final InputStream inputStream, final ExceptionFactory exceptionFactory, final int httpStatusCode) {
        CougarFault fault = getFaultFromInputStream(inputStream);
        ResponseCode responseCode = ResponseCodeMapper.getResponseCodeFromHttpCode(httpStatusCode, fault);
        return exceptionFactory.parseException(responseCode, fault.getErrorCode(),
                fault.getFaultCode() + " fault received from remote server: "+ ServerFaultCode.getByDetailCode(fault.getErrorCode()), fault.getDetail().getFaultMessages());
  }
View Full Code Here

Examples of com.betfair.cougar.core.api.fault.CougarFault

    public HTTPErrorToCougarExceptionTransformer(FaultUnMarshaller faultUnMarshaller) {
        super(faultUnMarshaller);
    }

    public Exception convert(final InputStream inputStream, final ExceptionFactory exceptionFactory, final int httpStatusCode) {
        CougarFault fault = getFaultFromInputStream(inputStream);
        ResponseCode responseCode = ResponseCodeMapper.getResponseCodeFromHttpCode(httpStatusCode, fault);
        return exceptionFactory.parseException(responseCode, fault.getErrorCode(),
                fault.getFaultCode() + " fault received from remote server: "+ ServerFaultCode.getByDetailCode(fault.getErrorCode()), fault.getDetail().getFaultMessages());
  }
View Full Code Here

Examples of com.betfair.cougar.core.api.fault.CougarFault

            }
        }

        final FaultDetail fd=new FaultDetail(faultString, faultParams);

        return new CougarFault() {
            @Override
            public String getErrorCode() {
                return faultString;
            }
View Full Code Here

Examples of com.betfair.cougar.core.api.fault.CougarFault

            }
        }

        final FaultDetail fd=new FaultDetail(faultString, faultParams);

        return new CougarFault() {
            @Override
            public String getErrorCode() {
                return faultString;
            }
View Full Code Here

Examples of com.betfair.cougar.core.api.fault.CougarFault

    @Override
    public CougarFault unMarshallFault(InputStream inputStream, String encoding) {
        boolean success = false;
        long start = System.currentTimeMillis();
        CougarFault fault = null;
        try {
            fault = faultUnMarshaller.unMarshallFault(inputStream, encoding);
            success = true;
        }
        finally {
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.