-
Enhancement
-
Resolution: Fixed
-
P4
-
1.4.0
-
beta
-
sparc
-
solaris_7
-
Verified
sean.mullan@ireland 2001-01-31
There is new support for chained exceptions in J2SE 1.4 (listed in the
Merlin JSR059 as ID:4293532). The java.lang.Throwable class has new
methods (initCause(), getCause()) and a constructor to support chaining
(or wrapping exceptions).
The CertPathValidatorException, CertPathBuilderException and CertStoreException
classes include their own support for wrapping exceptions. We *really should* adjust the API to use the new methods for wrapping exceptions.
Not doing so is bad design and redundant and makes it more cumbersome
to migrate to the new methods in a future release.
API changes to the 3 exception classes include the following:
1) Change :
public Exception getInternalException()
to:
public Throwable getCause()
2) Change constructors to take a Throwable instead of an Exception