Package 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 org.apache.cxf.interceptor.Fault
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.cxf.interceptor.Fault
FAULT_CODE_CLIENT, FAULT_CODE_SERVER, STACKTRACE, STACKTRACE_NAMESPACEFields inherited from class org.apache.cxf.common.i18n.UncheckedException
message -
Constructor Summary
ConstructorsConstructorDescriptionSoapFault(String message, ResourceBundle bundle, Throwable t, QName faultCode) SoapFault(String message, ResourceBundle bundle, QName faultCode) SoapFault(String message, ResourceBundle bundle, QName faultCode, Object... params) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubCode(QName subCode) Appends the SubCode to the SubCode list.static SoapFaultcreateFault(org.apache.cxf.interceptor.Fault f, SoapVersion v) getCodeString(String prefix, String defaultPrefix) getNode()getRole()Returns the fault actor.Returns the SubCode for the Fault Code.Returns the SubCode list for the Fault Code.getSubCodeString(String prefix, String defaultPrefix) voidsetNamespaces(Map<String, String> namespaces) voidvoidSets the fault actor.voidsetSubCode(QName subCode) Sets the SubCode for the Fault Code.voidsetSubCodes(List<QName> subCodes) Sets the SubCode list for the Fault Code.Methods inherited from class org.apache.cxf.interceptor.Fault
getDetail, getFaultCode, getLang, getMessage, getOrCreateDetail, getStatusCode, hasDetails, setDetail, setFaultCode, setLang, setMessage, setStatusCodeMethods inherited from class org.apache.cxf.common.i18n.UncheckedException
getCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ATTACHMENT_IO
-
-
Constructor Details
-
SoapFault
-
SoapFault
-
SoapFault
-
SoapFault
-
SoapFault
-
SoapFault
-
SoapFault
-
-
Method Details
-
getCodeString
-
getSubCodeString
-
getReason
-
getRole
Returns the fault actor.- Returns:
- the fault actor.
-
setRole
Sets the fault actor.- Parameters:
actor- the actor.
-
getNode
-
setNode
-
getSubCode
Returns the SubCode for the Fault Code. If there are more than one Subcode entries in this fault, the first Subcode is returned.- Returns:
- The SubCode element as detailed by the SOAP 1.2 spec.
-
getSubCodes
Returns the SubCode list for the Fault Code.- Returns:
- The SubCode element list as detailed by the SOAP 1.2 spec.
-
setSubCode
Sets the SubCode for the Fault Code. If there are more than one Subcode entries in this fault, the first Subcode is set while the other entries are removed.- Parameters:
subCode- The SubCode element as detailed by the SOAP 1.2 spec.
-
setSubCodes
Sets the SubCode list for the Fault Code.- Parameters:
subCodes- The SubCode element list as detailed by the SOAP 1.2 spec.
-
addSubCode
Appends the SubCode to the SubCode list.- Parameters:
subCode- The SubCode element as detailed by the SOAP 1.2 spec.
-
getNamespaces
-
setNamespaces
-
createFault
-