com.webmethods.caf.wsclient
Class WSClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.webmethods.caf.wsclient.WSClientException
All Implemented Interfaces:
Serializable

public class WSClientException
extends RuntimeException

General exception for the WSClient library

See Also:
Serialized Form

Field Summary
static String RES_BNDL_NAME
          Bundle class name for lookup of localizable exception strings
protected static long serialVersionUID
           
 
Constructor Summary
WSClientException()
           
WSClientException(ResourceBundle resourceBundle, String key)
          Create a new WSClientException with a message populated by a key lookup in a resource bundle
WSClientException(ResourceBundle resourceBundle, String key, Object[] args)
          Create a new WSClientException wrapping another Exception, containing a message populated by a key lookup in a resource bundle
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
WSClientException(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
WSClientException(Throwable cause)
          Create a new WSClientException wrapping some other Exception
 
Method Summary
static ResourceBundle getDefaultResourceBundle()
          Get the resource bundle used to lookup localized exception strings
 String getMessage()
           
 
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
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
See Also:
Constant Field Values

RES_BNDL_NAME

public static final String RES_BNDL_NAME
Bundle class name for lookup of localizable exception strings

See Also:
Constant Field Values
Constructor Detail

WSClientException

public WSClientException()

WSClientException

public WSClientException(Throwable cause)
Create a new WSClientException wrapping some other Exception

Parameters:
cause - the other Exception to wrap with a WSClientException

WSClientException

public WSClientException(ResourceBundle resourceBundle,
                         String key)
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 key
key - the key to lookup in the resource bundle

WSClientException

public WSClientException(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

Parameters:
resourceBundle - The resource bundle containing a lookup value for the resource key
key - the key to lookup in the resource bundle
throwable - the Exception to wrap with a WSClientException

WSClientException

public WSClientException(ResourceBundle resourceBundle,
                         String key,
                         Object[] args)
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 key
key - the key to lookup in the resource bundle
args - 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 key
key - the key to lookup in the resource bundle
args - the string substitution arguments for the exception message
throwable - the other Exception to wrap with a WSClientException
Method Detail

getDefaultResourceBundle

public static ResourceBundle getDefaultResourceBundle()
Get the resource bundle used to lookup localized exception strings

Returns:
the ResourceBundle instance

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable