Class SoapFaultException

All Implemented Interfaces:
Serializable

public final class SoapFaultException extends RuntimeException
A RuntimeException that represents a SOAP Fault that occurs during invocation processing.
Since:
1.0
See Also:
  • Constructor Details

    • SoapFaultException

      public SoapFaultException(QName code, QName subCode, String detail, String reason, String node, String role, Throwable cause)
    • SoapFaultException

      public SoapFaultException(org.apache.cxf.binding.soap.SoapFault f)
    • SoapFaultException

      public SoapFaultException(org.apache.cxf.binding.soap.SoapFault f, Map<String,String> additionalTransportData)
    • SoapFaultException

      public SoapFaultException(org.apache.cxf.interceptor.Fault f)
  • Method Details

    • getFaultCode

      public QName getFaultCode()
      Returns:
      a code used to indicate a class of errors.
    • getReason

      public String getReason()
      Returns:
      the cause (reason) of the fault.
    • getSubCode

      public Optional<QName> getSubCode()
      Returns:
      an Optional Subcode element if you need to break down the {@link this#getFaultCode()} into subcodes.
    • getDetail

      public String getDetail()
      Returns:
      an element that carries application-specific error messages. It can contain child elements called detail entries.
    • getNode

      public Optional<String> getNode()
      Returns:
      an URI identifying the node in which the Fault occurred.
    • getRole

      public Optional<String> getRole()
      Returns:
      the role of the node in which the fault occurred.
    • toString

      public String toString()
      Overrides:
      toString in class Throwable