Package com.webmethods.caf.wsclient
Class WSClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.webmethods.caf.wsclient.WSClientException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthException
General exception for the WSClient library
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Bundle class name for lookup of localizable exception stringsprotected static final long
-
Constructor Summary
ConstructorsConstructorDescriptionWSClientException
(Throwable cause) Create a new WSClientException wrapping some other ExceptionWSClientException
(ResourceBundle resourceBundle, String key) Create a new WSClientException with a message populated by a key lookup in a resource bundleWSClientException
(ResourceBundle resourceBundle, String key, Object[] args) Create a new WSClientException wrapping another Exception, containing a message populated by a key lookup in a resource bundleWSClientException
(ResourceBundle resourceBundle, String key, Object[] args, Throwable throwable) Create a new WSClientException wrapping another Exception, containing a message populated by a key lookup in a resource bundleWSClientException
(ResourceBundle resourceBundle, String key, Throwable throwable) Create a new WSClientException wrapping another Exception, containing a message populated by a key lookup in a resource bundle -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceBundle
Get the resource bundle used to lookup localized exception stringsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
protected static final long serialVersionUID- See Also:
-
RES_BNDL_NAME
Bundle class name for lookup of localizable exception strings- See Also:
-
-
Constructor Details
-
WSClientException
public WSClientException() -
WSClientException
Create a new WSClientException wrapping some other Exception- Parameters:
cause
- the other Exception to wrap with a WSClientException
-
WSClientException
Create a new WSClientException with a message populated by a key lookup in a resource bundle- Parameters:
resourceBundle
- The resource bundle containing a lookup value for the resource keykey
- the key to lookup in the resource bundle
-
WSClientException
Create a new WSClientException wrapping another Exception, containing a message populated by a key lookup in a resource bundle- Parameters:
resourceBundle
- The resource bundle containing a lookup value for the resource keykey
- the key to lookup in the resource bundlethrowable
- the Exception to wrap with a WSClientException
-
WSClientException
Create a new WSClientException wrapping another Exception, containing a message populated by a key lookup in a resource bundle- Parameters:
resourceBundle
- The resource bundle containing a lookup value for the resource keykey
- the key to lookup in the resource bundleargs
- the string substitution arguments for the exception message
-
WSClientException
public WSClientException(ResourceBundle resourceBundle, String key, Object[] args, Throwable throwable) Create a new WSClientException wrapping another Exception, containing a message populated by a key lookup in a resource bundle- Parameters:
resourceBundle
- The resource bundle containing a lookup value for the resource keykey
- the key to lookup in the resource bundleargs
- the string substitution arguments for the exception messagethrowable
- the other Exception to wrap with a WSClientException
-
-
Method Details
-
getDefaultResourceBundle
Get the resource bundle used to lookup localized exception strings- Returns:
- the ResourceBundle instance
-
getMessage
- Overrides:
getMessage
in classThrowable
-