public static RemoteException wrapException (Throwable orig)

Wraps an exception thrown by an implementation method. It returns the corresponding client-side exception.

Parameters:
orig    the exception to wrap.

Returns:  the wrapped exception.