Class SoapFaultException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class SoapFaultException
    extends Exception
                        

    Defines an exception that is supposed to be used to convey SOAP fault information.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      SoapMessage getFaultMessage()
      Fault getFault() Gets the SOAP fault information.
      String getMessage()
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SoapFaultException

        SoapFaultException(SoapMessage faultMessage, AttributedURIType messageId)
        Constructor that requires an wrapped SOAP fault message and a messageId.
        Parameters:
        faultMessage - SOAP message that shall include a JAXBElement with Fault body.
        messageId - of the request, to properly set the relatesTo field.
      • SoapFaultException

        SoapFaultException(SoapMessage faultMessage)
        Constructor that requires an wrapped SOAP fault message.
        Parameters:
        faultMessage - SOAP message that shall include a JAXBElement with Fault body.
      • SoapFaultException

        SoapFaultException(SoapMessage faultMessage, Throwable throwable, AttributedURIType messageId)
        Constructor that requires a wrapped SOAP fault message plus a nested cause and a messageId.
        Parameters:
        faultMessage - SOAP message that shall include a JAXBElement with Fault body.
        throwable - extended information, e.g.
        messageId - of the request, to properly set the relatesTo field.
      • SoapFaultException

        SoapFaultException(SoapMessage faultMessage, Throwable throwable)
        Constructor that requires a wrapped SOAP fault message plus a nested cause.
        Parameters:
        faultMessage - SOAP message that shall include a JAXBElement with Fault body.
        throwable - extended information, e.g.