com.sun.xml.ws.api.message
Class ExceptionHasMessage
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.xml.ws.WebServiceException
com.sun.xml.ws.util.exception.JAXWSExceptionBase
com.sun.xml.ws.api.message.ExceptionHasMessage
- All Implemented Interfaces:
- Localizable, 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 correspoinding fault Message
from ExceptionHasMessage::getFaultMessage
is sent on the wire.
- See Also:
- Serialized Form
ExceptionHasMessage
public ExceptionHasMessage(String key,
Object... args)
getFaultMessage
public abstract Message getFaultMessage()
- Returns the exception into a fault Message
- Returns:
- Message for this exception