Class ActiveRequestorException

    • Method Detail

      • newSenderException

        public static ActiveRequestorException newSenderException​(String key,
                                                                  String... args)
        Constructs a new exception instance for client side errors.
        Parameters:
        key - The localization key to use when constructing the SOAP fault.
        args - Additional parameters for the localized message.
        Returns:
        An exception instance which represents the error state.
      • newReceiverException

        public static ActiveRequestorException newReceiverException​(String key,
                                                                    String... args)
        Constructs a new exception instance for server side errors.
        Parameters:
        key - The localization key to use when constructing the SOAP fault.
        args - Additional parameters for the localized message.
        Returns:
        An exception instance which represents the error state.
      • newReceiverException

        public static ActiveRequestorException newReceiverException​(Throwable throwable)
        Constructs a new exception instance for server side errors based on exception objects.
        Parameters:
        throwable - The exception that should be encapsulated in the error message.
        Returns:
        An exception instance which represents the error state.
      • getSOAPFault

        public jakarta.xml.soap.SOAPMessage getSOAPFault()
        Returns the exception's SOAP Fault representation that can be returned back to the SOAP client as a response.
        Returns:
        The exception's SOAP Fault representation. May return null, if there was a problem while creating the SOAP objects.