Package com.sun.xml.ws.util.exception
Class JAXWSExceptionBase
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.xml.ws.WebServiceException
-
- com.sun.xml.ws.util.exception.JAXWSExceptionBase
-
- All Implemented Interfaces:
com.sun.istack.localization.Localizable,com.sun.istack.localization.LocalizableMessageFactory.ResourceBundleSupplier,Serializable
- Direct Known Subclasses:
ClientTransportException,DeserializationException,ExceptionHasMessage,HandlerException,RuntimeModelerException,SenderException,SerializationException,ServerRtException,UnsupportedMediaException,UtilException,XMLMessageException,XMLReaderException,XMLStreamReaderException,XMLStreamWriterException
public abstract class JAXWSExceptionBase extends jakarta.xml.ws.WebServiceException implements com.sun.istack.localization.Localizable, com.sun.istack.localization.LocalizableMessageFactory.ResourceBundleSupplierRepresents aWebServiceExceptionwith localizable message.- Author:
- WS Development Team
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJAXWSExceptionBase(com.sun.istack.localization.Localizable msg)protectedJAXWSExceptionBase(com.sun.istack.localization.Localizable msg, Throwable cause)protectedJAXWSExceptionBase(String message)protectedJAXWSExceptionBase(String key, Object... args)Deprecated.Should use the localizable constructor instead.protectedJAXWSExceptionBase(Throwable throwable)Creates a new exception that wraps the specified exception.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object[]getArguments()protected abstract StringgetDefaultResourceBundleName()Gets the default resource bundle name for this kind of exception.StringgetKey()StringgetMessage()ResourceBundlegetResourceBundle(Locale locale)StringgetResourceBundleName()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JAXWSExceptionBase
@Deprecated protected JAXWSExceptionBase(String key, Object... args)
Deprecated.Should use the localizable constructor instead.- Parameters:
key-args-
-
JAXWSExceptionBase
protected JAXWSExceptionBase(String message)
-
JAXWSExceptionBase
protected JAXWSExceptionBase(Throwable throwable)
Creates a new exception that wraps the specified exception.- Parameters:
throwable-
-
JAXWSExceptionBase
protected JAXWSExceptionBase(com.sun.istack.localization.Localizable msg)
-
JAXWSExceptionBase
protected JAXWSExceptionBase(com.sun.istack.localization.Localizable msg, Throwable cause)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getDefaultResourceBundleName
protected abstract String getDefaultResourceBundleName()
Gets the default resource bundle name for this kind of exception. Used forJAXWSExceptionBase(String, Object[]).- Returns:
-
getKey
public final String getKey()
- Specified by:
getKeyin interfacecom.sun.istack.localization.Localizable
-
getArguments
public final Object[] getArguments()
- Specified by:
getArgumentsin interfacecom.sun.istack.localization.Localizable
-
getResourceBundleName
public final String getResourceBundleName()
- Specified by:
getResourceBundleNamein interfacecom.sun.istack.localization.Localizable
-
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)
- Specified by:
getResourceBundlein interfacecom.sun.istack.localization.Localizable- Specified by:
getResourceBundlein interfacecom.sun.istack.localization.LocalizableMessageFactory.ResourceBundleSupplier
-
-