Class SoapFaultException

    • Constructor Detail

      • SoapFaultException

        public SoapFaultException​(SoapMessage faultMessage,
                                  @Nullable
                                  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
                                  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.