org.apache.cxf.binding.soap
Class SoapFault
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.cxf.common.i18n.UncheckedException
org.apache.cxf.interceptor.Fault
org.apache.cxf.binding.soap.SoapFault
- All Implemented Interfaces:
- Serializable
public class SoapFault
- extends Fault
- See Also:
- Serialized Form
ATTACHMENT_IO
public static final QName ATTACHMENT_IO
SoapFault
public SoapFault(Message message,
Throwable throwable,
QName faultCode)
SoapFault
public SoapFault(Message message,
QName faultCode)
SoapFault
public SoapFault(String message,
QName faultCode)
SoapFault
public SoapFault(String message,
Throwable t,
QName faultCode)
getCodeString
public String getCodeString(String prefix,
String defaultPrefix)
getSubCodeString
public String getSubCodeString(String prefix,
String defaultPrefix)
getReason
public String getReason()
getRole
public String getRole()
- Returns the fault actor.
- Returns:
- the fault actor.
setRole
public void setRole(String actor)
- Sets the fault actor.
- Parameters:
actor
- the actor.
getNode
public String getNode()
setNode
public void setNode(String n)
getSubCode
public QName getSubCode()
- Returns the SubCode for the Fault Code.
- Returns:
- The SubCode element as detailed by the SOAP 1.2 spec.
setSubCode
public void setSubCode(QName subCode)
- Sets the SubCode for the Fault Code.
- Parameters:
subCode
- The SubCode element as detailed by the SOAP 1.2 spec.
getNamespaces
public Map<String,String> getNamespaces()
setNamespaces
public void setNamespaces(Map<String,String> namespaces)
createFault
public static SoapFault createFault(Fault f,
SoapVersion v)
Apache CXF