+2005-02-15 Mark Wielaard <mark@klomp.org>
+
+ * javax/net/ssl/SSLContext.java (getInstance): Add exception message
+ and/or cause before throwing.
+
2005-02-15 Richard Henderson <rth@redhat.com>
* Makefile.am (libgcj_la_SOURCES): Move all sources ...
{
if (provider == null)
{
- throw new IllegalArgumentException();
+ throw new IllegalArgumentException("null provider");
}
Provider p = Security.getProvider(provider);
if (p == null)
}
catch (InvocationTargetException ite)
{
- ite.printStackTrace();
- throw new NoSuchAlgorithmException();
+ NoSuchAlgorithmException nsae = new NoSuchAlgorithmException(protocol);
+ throw (NoSuchAlgorithmException) nsae.initCause(ite);
}
catch (ClassCastException cce)
{
- cce.printStackTrace();
- throw new NoSuchAlgorithmException();
+ NoSuchAlgorithmException nsae = new NoSuchAlgorithmException(protocol);
+ throw (NoSuchAlgorithmException) nsae.initCause(cce);
}
}