It would be better if the code throwing the CertPathValidatorException generated a meaningful message, rather that trapping it and generating the meaningful message here.