Class SoapFaultException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.somda.sdc.dpws.soap.exception.SoapFaultException
All Implemented Interfaces:
Serializable

public class SoapFaultException extends Exception
Defines an exception that is supposed to be used to convey SOAP fault information.
See Also:
  • Constructor Details

    • 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 Details

    • 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.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable