Class ExceptionHasMessage

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.xml.ws.WebServiceException
com.sun.xml.ws.util.exception.JAXWSExceptionBase
com.sun.xml.ws.api.message.ExceptionHasMessage
All Implemented Interfaces:
com.sun.istack.localization.Localizable, com.sun.istack.localization.LocalizableMessageFactory.ResourceBundleSupplier, Serializable
Direct Known Subclasses:
MessageCreationException, VersionMismatchException

public abstract class ExceptionHasMessage extends JAXWSExceptionBase
This class represents an Exception that needs to be marshalled with a specific protocol wire format. For example, the SOAP's VersionMismatchFault needs to be written with a correct fault code. In that case, decoder could throw VersionMismatchException, and the corresponding fault Message from getFaultMessage() is sent on the wire.
Author:
Jitendra Kotamraju
See Also:
  • Constructor Details

    • ExceptionHasMessage

      public ExceptionHasMessage(String key, Object... args)
  • Method Details

    • getFaultMessage

      public abstract Message getFaultMessage()
      Returns the exception into a fault Message
      Returns:
      Message for this exception