| java.lang.Object com.ivata.mask.util.ThrowableHandling
ThrowableHandling | final public class ThrowableHandling (Code) | |
Routines for handling exceptions.
Don't create an instance of this class; use the static final methods.
since: ivata masks 0.4 (2002-05-20) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.10 $ |
Field Summary | |
final static String[] | EMBEDDED
Used to identify the preprended text in embedded exceptions. |
Method Summary | |
public static Throwable | getCause(Throwable throwable)
If the parameter provided is a RemoteException , then
provide the original exception, otherwise just return this exception.
Parameters: throwable - throwable object to return the original exception for. | public static String | getRemoteMessage(Throwable throwable)
If the parameter provided is a RemoteException , then
provide the message from the original exception, otherwise just return
the message of this exception.
Parameters: throwable - throwable object to return the original exception message for. |
EMBEDDED | final static String[] EMBEDDED(Code) | |
Used to identify the preprended text in embedded exceptions.
|
getCause | public static Throwable getCause(Throwable throwable)(Code) | |
If the parameter provided is a RemoteException , then
provide the original exception, otherwise just return this exception.
Parameters: throwable - throwable object to return the original exception for. the exception which originally was thrown. |
getRemoteMessage | public static String getRemoteMessage(Throwable throwable)(Code) | |
If the parameter provided is a RemoteException , then
provide the message from the original exception, otherwise just return
the message of this exception.
Parameters: throwable - throwable object to return the original exception message for. the message of the exception which originally was thrown. |
|
|