Class SoapFaultException

    • Constructor Detail

      • SoapFaultException

        public SoapFaultException​(SoapMessage faultMessage,
                                  @Nullable
                                  org.somda.sdc.dpws.soap.wsaddressing.model.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. Otherwise, a ClassCastException is thrown.
        messageId - of the request, to properly set the relatesTo field.
      • SoapFaultException

        public SoapFaultException​(SoapMessage faultMessage)
        Constructor that requires an wrapped SOAP fault message.
        Parameters:
        faultMessage - SOAP message that shall include a JAXBElement with Fault body. Otherwise, a ClassCastException is thrown.
      • SoapFaultException

        public SoapFaultException​(SoapMessage faultMessage,
                                  Throwable throwable,
                                  @Nullable
                                  org.somda.sdc.dpws.soap.wsaddressing.model.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. Otherwise, a ClassCastException is thrown.
        throwable - extended information, e.g. transport layer info.
        messageId - of the request, to properly set the relatesTo field.
      • SoapFaultException

        public 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. Otherwise, a ClassCastException is thrown.
        throwable - extended information, e.g. transport layer info.
    • Method Detail

      • getFaultMessage

        public SoapMessage getFaultMessage()
      • getFault

        public org.somda.sdc.dpws.soap.model.Fault getFault()
        Gets the SOAP fault information.
        Returns:
        Fault that is encapsulated in the SoapMessage wrapped by this exception.