* @param faultActor URI for fault origination (optional, may be <code>null</code>).
* @throws WsException if SOAP Fault details violate the SOAP specification
*/
public SoapFault(QName faultCode, String faultString, String faultActor) throws WsException {
if (faultCode == null || faultString == null) {
throw new WsException("faultCode and faultString must be non-null");
}
if (faultCode.getUri() == null) {
throw new WsException("faultCode URI must be non-null");
}
if (!faultCode.getUri().equals(SoapConstants.SOAP_URI)) {
if (faultCode.getPrefix() == null) {
throw new WsException("faultCode prefix must be non-null for custom URIs");
}
}
m_faultCode = faultCode;
m_faultString = faultString;
m_faultActor = faultActor;