This class implements our own Exception chain, overriding Throwable as much
as possible, relying on our own SerializableStackTraceElement instead of
java.lang.StackStraceElement.
The main reason for this class is that java.lang.StackStraceElement is not
serializable in JDK 1.4 (the constructor is missing, whereas 1.5 has it).
Unfortunately we cannot override everything we would like to because
StackTraceElement is also final and so SerializableStackTraceElement cannot
subtype+override it.
author: Marc Herbert version: 1.0
Converts a chain of Throwables to a chain of
SerializableException. The resulting chain has the same
length.
Parameters: start - head of chain to convert
Please use getSerializedStackTrace() instead. Unfortunately
StackTraceElement has no constructor in 1.4 and cannot be overriden
(final).
See Also:java.lang.Throwable.getStackTrace
This method is deprecated and erases the regular, non serializable stack
trace. Please use setSerializedStackTrace() instead. Unfortunately
StackTraceElement has no constructor in 1.4 and cannot be overriden
(final).
See Also:java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[])