List of usage examples for org.springframework.remoting.jaxws JaxWsSoapFaultException getFaultString
@Override
public String getFaultString()
From source file:jp.primecloud.auto.nifty.soap.NiftyCloudJaxWsPortProxyFactoryBean.java
/** * {@inheritDoc}/*w w w . j av a 2s . c om*/ */ @Override protected Object doInvoke(MethodInvocation invocation) throws Throwable { try { return super.doInvoke(invocation); } catch (Exception e) { // API?? String method = StringUtils.capitalize(invocation.getMethod().getName()); // String request = null; if (invocation.getArguments() != null || invocation.getArguments().length != 0) { request = jp.primecloud.auto.util.StringUtils.reflectToString(invocation.getArguments()[0]); } AutoException autoException; if (e instanceof JaxWsSoapFaultException) { JaxWsSoapFaultException ex = JaxWsSoapFaultException.class.cast(e); autoException = new AutoException("ENIFTY-000002", e, method, ex.getFaultCode(), ex.getFaultString(), request); } else { autoException = new AutoException("ENIFTY-000001", e, method, request); } throw autoException; } }