code: public static boolean isCertPathBuilderException(Throwable cause) {
          if (cause == null)
              return false;
          if (cause instanceof java.security.cert.CertPathBuilderException)
              return true;
          return isCertPathBuilderException(cause.getCause());
      }
docs: Checks if cause is an instance of CertPathBuilderException
  
  @param cause The throwable cause of the exception
  @return True if cause is an instance of CertPathBuilderException