/** * set the fault details to a string element. * @param details XML fragment */ public void setFaultDetailString(String details) { clearFaultDetails(); addFaultDetailString(details); }
/** * set the fault details to a string element. * @param details XML fragment */ public void setFaultDetailString(String details) { clearFaultDetails(); addFaultDetailString(details); }
/** * set the fault details to a string element. * @param details XML fragment */ public void setFaultDetailString(String details) { clearFaultDetails(); addFaultDetailString(details); }
/** * Axis provides an AxisFault for reporting errors through SOAP. This method * creates a fault from a message and a cause, and includes in the detail * the cause's (relevent) stack trace * @blameClient - true if the error is known to be caused by an input parameter - such as an * invalid query ID. */ public AxisFault makeFault(boolean blameClient, String message, Throwable cause) { log.error(message+" [...will 'throw' AxisFault '"+cause+"' to client]", cause); AxisFault fault = new AxisFault(message); /* these fault codes are deprecated if (blameClient) { fault.setFaultCode("Client"); } else { fault.setFaultCode("Server"); } */ fault.clearFaultDetails(); while (cause != null) { StringWriter writer = new StringWriter(); cause.printStackTrace(new PrintWriter(writer)); fault.addFaultDetailString(writer.toString()); cause = cause.getCause(); } return fault; }