public abstract class RemoteInvocationUtils extends Object
Mainly intended for use within the remoting framework.
| 构造器和说明 |
|---|
RemoteInvocationUtils() |
public static void fillInClientStackTraceIfPossible(Throwable ex)
The given exception is typically thrown on the server and serialized
as-is, with the client wanting it to contain the client-side portion
of the stack trace as well. What we can do here is to update the
StackTraceElement array with the current client-side stack
trace, provided that we run on JDK 1.4+.
ex - the exception to updateThrowable.getStackTrace(),
Throwable.setStackTrace(StackTraceElement[])