/** * Convert the details in an AxisFault to a Detail object * * @param fault source of the fault details * @return a detail element contructed from the AxisFault details * @throws SOAPException */ private Detail convertToDetail(AxisFault fault) throws SOAPException { detail = new Detail(); Element[] darray = fault.getFaultDetails(); fault.setFaultDetail(new Element[]{}); for (int i = 0; i < darray.length; i++) { Element detailtEntryElem = darray[i]; DetailEntry detailEntry = detail.addDetailEntry( new PrefixedQName(detailtEntryElem.getNamespaceURI(), detailtEntryElem.getLocalName(), detailtEntryElem.getPrefix())); copyChildren(detailEntry, detailtEntryElem); } return detail; }
/** * Convert the details in an AxisFault to a Detail object * * @param fault source of the fault details * @return a detail element contructed from the AxisFault details * @throws SOAPException */ private Detail convertToDetail(AxisFault fault) throws SOAPException { detail = new Detail(); Element[] darray = fault.getFaultDetails(); fault.setFaultDetail(new Element[]{}); for (int i = 0; i < darray.length; i++) { Element detailtEntryElem = darray[i]; DetailEntry detailEntry = detail.addDetailEntry( new PrefixedQName(detailtEntryElem.getNamespaceURI(), detailtEntryElem.getLocalName(), detailtEntryElem.getPrefix())); copyChildren(detailEntry, detailtEntryElem); } return detail; }
/** * Convert the details in an AxisFault to a Detail object * * @param fault source of the fault details * @return a detail element contructed from the AxisFault details * @throws SOAPException */ private Detail convertToDetail(AxisFault fault) throws SOAPException { detail = new Detail(); Element[] darray = fault.getFaultDetails(); fault.setFaultDetail(new Element[]{}); for (int i = 0; i < darray.length; i++) { Element detailtEntryElem = darray[i]; DetailEntry detailEntry = detail.addDetailEntry( new PrefixedQName(detailtEntryElem.getNamespaceURI(), detailtEntryElem.getLocalName(), detailtEntryElem.getPrefix())); copyChildren(detailEntry, detailtEntryElem); } return detail; }
/** * Make a fault in any namespace. * * @param code fault code which will be passed into the Axis namespace * @param faultString fault string * @param actor fault actor * @param details details; if null the current stack trace and classname is * inserted into the details. */ public AxisFault(QName code, String faultString, String actor, Element[] details) { super (faultString); setFaultCode( code ); setFaultString( faultString ); setFaultActor( actor ); setFaultDetail( details ); if (details == null) { initFromException(this); } }
/** * Make a fault in any namespace. * * @param code fault code which will be passed into the Axis namespace * @param faultString fault string * @param actor fault actor * @param details details; if null the current stack trace and classname is * inserted into the details. */ public AxisFault(QName code, String faultString, String actor, Element[] details) { super (faultString); setFaultCode( code ); setFaultString( faultString ); setFaultActor( actor ); setFaultDetail( details ); if (details == null) { initFromException(this); } }
/** * Make a fault in any namespace. * * @param code fault code which will be passed into the Axis namespace * @param faultString fault string * @param actor fault actor * @param details details; if null the current stack trace and classname is * inserted into the details. */ public AxisFault(QName code, String faultString, String actor, Element[] details) { super (faultString); setFaultCode( code ); setFaultString( faultString ); setFaultActor( actor ); setFaultDetail( details ); if (details == null) { initFromException(this); } }
fault.setFaultDetail(elementsReturned); throw fault;
setFaultDetail( XMLUtils.asElementArray(details));
setFaultDetail( XMLUtils.asElementArray(details));
setFaultDetail( XMLUtils.asElementArray(details));
/** * Make a fault in any namespace. * * @param code fault code which will be passed into the Axis namespace * @param subcodes fault subcodes which will be pased into the Axis namespace * @param faultString fault string * @param actor fault actor, same as fault role in SOAP 1.2 * @param node which node caused the fault on the SOAP path * @param details details; if null the current stack trace and classname is * inserted into the details. * @since axis1.1 */ public AxisFault(QName code, QName[] subcodes, String faultString, String actor, String node, Element[] details) { super (faultString); setFaultCode( code ); if (subcodes != null) { for (int i = 0; i < subcodes.length; i++) { addFaultSubCode( subcodes[i] ); } } setFaultString( faultString ); setFaultActor( actor ); setFaultNode( node ); setFaultDetail( details ); if (details == null) { initFromException(this); } }
/** * Make a fault in any namespace. * * @param code fault code which will be passed into the Axis namespace * @param subcodes fault subcodes which will be pased into the Axis namespace * @param faultString fault string * @param actor fault actor, same as fault role in SOAP 1.2 * @param node which node caused the fault on the SOAP path * @param details details; if null the current stack trace and classname is * inserted into the details. * @since axis1.1 */ public AxisFault(QName code, QName[] subcodes, String faultString, String actor, String node, Element[] details) { super (faultString); setFaultCode( code ); if (subcodes != null) { for (int i = 0; i < subcodes.length; i++) { addFaultSubCode( subcodes[i] ); } } setFaultString( faultString ); setFaultActor( actor ); setFaultNode( node ); setFaultDetail( details ); if (details == null) { initFromException(this); } }
/** * Make a fault in any namespace. * * @param code fault code which will be passed into the Axis namespace * @param subcodes fault subcodes which will be pased into the Axis namespace * @param faultString fault string * @param actor fault actor, same as fault role in SOAP 1.2 * @param node which node caused the fault on the SOAP path * @param details details; if null the current stack trace and classname is * inserted into the details. * @since axis1.1 */ public AxisFault(QName code, QName[] subcodes, String faultString, String actor, String node, Element[] details) { super (faultString); setFaultCode( code ); if (subcodes != null) { for (int i = 0; i < subcodes.length; i++) { addFaultSubCode( subcodes[i] ); } } setFaultString( faultString ); setFaultActor( actor ); setFaultNode( node ); setFaultDetail( details ); if (details == null) { initFromException(this); } }
f.setFaultActor(faultActor); f.setFaultNode(faultNode); f.setFaultDetail(faultDetails);
f.setFaultActor(faultActor); f.setFaultNode(faultNode); f.setFaultDetail(faultDetails);
f.setFaultActor(faultActor); f.setFaultNode(faultNode); f.setFaultDetail(faultDetails);