Hmm.. the code is a bit odd, isn't it? The XmlLoadException class takes a cause
parameter, and stores it in a private member variable, but never does anything
with it and never provides any methods to access it.
How about we add a (one-line) getCause() method to this class? This would be
api-compatible with java1.4 exceptions, but allow the class to work the same on
all platforms. This solution is explicitly mentioned in the Jdk1.4 javadocs for
Throwable.getCause() as a good solution for pre-1.4 exceptions.
Or have I missed something?