if (faults == null) {
return;
}
// For each fault, register its information
for (Iterator faultIt = faults.iterator(); faultIt.hasNext();) {
FaultInfo info = (FaultInfo) faultIt.next();
QName qname = info.getQName();
Message message = info.getMessage();
// if no parts in fault, skip it!
if (qname == null) {
continue;
}
// Get the Exception class name
String className = Utils.getFullExceptionName(message, symbolTable);
// output the registration API call
pw.println(" oper.addFault(new org.apache.axis.description.FaultDesc(");
pw.println(" " + Utils.getNewQName(qname) + ",");
pw.println(" \"" + className + "\",");
pw.println(" " + Utils.getNewQName(info.getXMLType()) + ", ");
pw.println(" " + Utils.isFaultComplex(message, symbolTable));
pw.println(" ));");
}
}