com.ivata.mask.util
Class ThrowableHandling

java.lang.Object
  extended bycom.ivata.mask.util.ThrowableHandling

public final class ThrowableHandling
extends java.lang.Object

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)
Version:
$Revision: 1.9 $
Author:
Colin MacLeod colin.macleod@ivata.com

Method Summary
static java.lang.Throwable getCause(java.lang.Throwable throwable)
           If the parameter provided is a RemoteException, then provide the original exception, otherwise just return this exception.
static java.lang.String getRemoteMessage(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCause

public static java.lang.Throwable getCause(java.lang.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.
Returns:
the exception which originally was thrown.

getRemoteMessage

public static java.lang.String getRemoteMessage(java.lang.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.
Returns:
the message of the exception which originally was thrown.


Copyright © 2001-2005 ivata limited. All Rights Reserved.