@Override public String getFaultString() { return getFault().getFaultString(); }
@Override public String getFaultString() { return getFault().getFaultString(); }
@Override public boolean handleFault(SOAPMessageContext context) { if (!shouldExecute(context)) { return true; } final Span span = tracingPlugin.getTracer().scopeManager().active().span(); Tags.ERROR.set(span, Boolean.TRUE); try { final SOAPFault fault = context.getMessage().getSOAPBody().getFault(); span.setTag("soap.fault.reason", fault.getFaultString()); span.setTag("soap.fault.code", fault.getFaultCode()); } catch (SOAPException e) { logger.warn("Exception while trying to access SOAP fault (this exception was suppressed)", e); } return true; }
/** Constructor for SOAPFaultException * @param fault <code>SOAPFault</code> representing the fault * * @see javax.xml.soap.SOAPFactory#createFault **/ public SOAPFaultException(SOAPFault fault) { super(fault.getFaultString()); this.fault = fault; }
/** Constructor for SOAPFaultException * @param fault {@code SOAPFault} representing the fault * * @see javax.xml.soap.SOAPFactory#createFault **/ public SOAPFaultException(SOAPFault fault) { super(fault.getFaultString()); this.fault = fault; }
/** Constructor for SOAPFaultException * @param fault {@code SOAPFault} representing the fault * * @see javax.xml.soap.SOAPFactory#createFault **/ public SOAPFaultException(SOAPFault fault) { super(fault.getFaultString()); this.fault = fault; }
/** Returns the fault string for the given fault. */ @Override public String getFaultString(SOAPFault fault) { return fault.getFaultString(); }
/** Constructor for SOAPFaultException * @param fault {@code SOAPFault} representing the fault * * @see javax.xml.soap.SOAPFactory#createFault **/ public SOAPFaultException(SOAPFault fault) { super(fault.getFaultString()); this.fault = fault; }
/** Constructor for SOAPFaultException * @param fault <code>SOAPFault</code> representing the fault * * @see javax.xml.soap.SOAPFactory#createFault **/ public SOAPFaultException(SOAPFault fault) { super(fault.getFaultString()); this.fault = fault; }
/** Constructor for SOAPFaultException * @param fault <code>SOAPFault</code> representing the fault * * @see javax.xml.soap.SOAPFactory#createFault **/ public SOAPFaultException(SOAPFault fault) { super(fault.getFaultString()); this.fault = fault; }
/** Constructor for SOAPFaultException * @param fault {@code SOAPFault} representing the fault * * @see javax.xml.soap.SOAPFactory#createFault **/ public SOAPFaultException(SOAPFault fault) { super(fault.getFaultString()); this.fault = fault; }
public SOAPFaultException(SOAPFault fault) { super(fault.getFaultString()); this.fault = fault; }
private SoapFault mapSoapFault(SOAPFaultException sfe) { SoapFault sf = new SoapFault(sfe.getFault().getFaultString(), sfe, sfe.getFault().getFaultCodeAsQName()); sf.setRole(sfe.getFault().getFaultActor()); if (sfe.getFault().hasDetail()) { sf.setDetail(sfe.getFault().getDetail()); } return sf; }
@Override protected Fault createFault(Throwable ex, Method m, List<Object> params, boolean checked) { //map the JAX-WS faults SOAPFaultException sfe = findSoapFaultException(ex); if (sfe != null) { SoapFault fault = new SoapFault(sfe.getFault().getFaultString(), ex, sfe.getFault().getFaultCodeAsQName()); fault.setRole(sfe.getFault().getFaultActor()); if (sfe.getFault().hasDetail()) { fault.setDetail(sfe.getFault().getDetail()); } return fault; } return super.createFault(ex, m, params, checked); }
soapFault.setFaultString(sf.getFault().getFaultString()); SAAJUtils.setFaultCode(soapFault, sf.getFault().getFaultCodeAsQName()); soapFault.setFaultActor(sf.getFault().getFaultActor());
@Override public String getFaultStringOrReason() { return getSaajFault().getFaultString(); } }
@Override public String getFaultStringOrReason() { return getSaajFault().getFaultString(); } }
soapFault.setFaultString(sf.getFault().getFaultString()); SAAJUtils.setFaultCode(soapFault, sf.getFault().getFaultCodeAsQName()); soapFault.setFaultActor(sf.getFault().getFaultActor());
SOAP11Fault(SOAPFault fault) { this.faultcode = fault.getFaultCodeAsQName(); this.faultstring = fault.getFaultString(); this.faultactor = fault.getFaultActor(); if (fault.getDetail() != null) { detail = new DetailType(); Iterator iter = fault.getDetail().getDetailEntries(); while(iter.hasNext()){ Element fd = (Element)iter.next(); detail.getDetails().add(fd); } } }
private SoapFault mapSoapFault(SOAPFaultException sfe) { SoapFault sf = new SoapFault(sfe.getFault().getFaultString(), sfe, sfe.getFault().getFaultCodeAsQName()); sf.setRole(sfe.getFault().getFaultActor()); if (sfe.getFault().hasDetail()) { sf.setDetail(sfe.getFault().getDetail()); } return sf; }