Package com.betfair.cougar.core.api.fault

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


            }
        }

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

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

    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

    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

            }
        }

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

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

            }
        }

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

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

    @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

Related Classes of com.betfair.cougar.core.api.fault.CougarFault

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.