com.sun.xml.ws.api.message
Class ExceptionHasMessage

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.xml.ws.WebServiceException
                  extended by com.sun.xml.ws.util.exception.JAXWSExceptionBase
                      extended by 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

Field Summary
 
Fields inherited from interface com.sun.xml.ws.util.localization.Localizable
NOT_LOCALIZABLE
 
Constructor Summary
ExceptionHasMessage(String key, Object... args)
           
 
Method Summary
abstract  Message getFaultMessage()
          Returns the exception into a fault Message
 
Methods inherited from class com.sun.xml.ws.util.exception.JAXWSExceptionBase
getArguments, getDefaultResourceBundleName, getKey, getMessage, getResourceBundleName
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionHasMessage

public ExceptionHasMessage(String key,
                           Object... args)
Method Detail

getFaultMessage

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

Returns:
Message for this exception