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
ConstructorsModifierConstructorDescriptionprotectedprotectedJAXWSExceptionBase(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
Modifier and TypeMethodDescriptionfinal Object[]Returns the arguments for message formatting.protected abstract StringGets the default resource bundle name for this kind of exception.final StringgetKey()Gets the key in the resource bundle.getResourceBundle(Locale locale) Gets the ResourceBundle.final StringMethods 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:
getMessagein classThrowable
-
getDefaultResourceBundleName
Gets the default resource bundle name for this kind of exception. Used forJAXWSExceptionBase(String, Object[]).- Returns:
-
getKey
Description copied from interface:LocalizableGets the key in the resource bundle.- Specified by:
getKeyin 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:LocalizableReturns the arguments for message formatting.- Specified by:
getArgumentsin interfaceLocalizable- Returns:
- can be an array of length 0 but never be null.
-
getResourceBundleName
- Specified by:
getResourceBundleNamein interfaceLocalizable
-
getResourceBundle
Description copied from interface:LocalizableMessageFactory.ResourceBundleSupplierGets the ResourceBundle.- Specified by:
getResourceBundlein interfaceLocalizable- Specified by:
getResourceBundlein interfaceLocalizableMessageFactory.ResourceBundleSupplier- Parameters:
locale- the requested bundle's locale- Returns:
- ResourceBundle
-