Package com.sun.xml.ws.util.exception
Class JAXWSExceptionBase
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.xml.ws.WebServiceException
com.sun.xml.ws.util.exception.JAXWSExceptionBase
- All Implemented Interfaces:
Localizable
,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 javax.xml.ws.WebServiceException
implements Localizable, LocalizableMessageFactory.ResourceBundleSupplier
Represents a
WebServiceException
with
localizable message.- Author:
- WS Development Team
- See Also:
-
Field Summary
Fields inherited from interface com.sun.istack.localization.Localizable
NOT_LOCALIZABLE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
JAXWSExceptionBase
(Localizable msg, Throwable cause) protected
JAXWSExceptionBase
(String message) protected
JAXWSExceptionBase
(String key, Object... args) Deprecated.Should use the localizable constructor instead.protected
JAXWSExceptionBase
(Throwable throwable) Creates a new exception that wraps the specified exception. -
Method Summary
Modifier and TypeMethodDescriptionfinal Object[]
Returns the arguments for message formatting.protected abstract String
Gets the default resource bundle name for this kind of exception.final String
getKey()
Gets the key in the resource bundle.getResourceBundle
(Locale locale) Gets the ResourceBundle.final String
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JAXWSExceptionBase
Deprecated.Should use the localizable constructor instead.- Parameters:
key
-args
-
-
JAXWSExceptionBase
-
JAXWSExceptionBase
Creates a new exception that wraps the specified exception.- Parameters:
throwable
-
-
JAXWSExceptionBase
-
JAXWSExceptionBase
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getDefaultResourceBundleName
Gets the default resource bundle name for this kind of exception. Used forJAXWSExceptionBase(String, Object[])
.- Returns:
-
getKey
Description copied from interface:Localizable
Gets the key in the resource bundle.- Specified by:
getKey
in interfaceLocalizable
- Returns:
- if this method returns
Localizable.NOT_LOCALIZABLE
, that means the message is not localizable, and the first item ofLocalizable.getArguments()
array holds a String.
-
getArguments
Description copied from interface:Localizable
Returns the arguments for message formatting.- Specified by:
getArguments
in interfaceLocalizable
- Returns:
- can be an array of length 0 but never be null.
-
getResourceBundleName
- Specified by:
getResourceBundleName
in interfaceLocalizable
-
getResourceBundle
Description copied from interface:LocalizableMessageFactory.ResourceBundleSupplier
Gets the ResourceBundle.- Specified by:
getResourceBundle
in interfaceLocalizable
- Specified by:
getResourceBundle
in interfaceLocalizableMessageFactory.ResourceBundleSupplier
- Parameters:
locale
- the requested bundle's locale- Returns:
- ResourceBundle
-