summaryrefslogtreecommitdiffstats
path: root/libjava/javax/net/ssl
diff options
context:
space:
mode:
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-15 22:05:04 +0000
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-15 22:05:04 +0000
commitc389f78a656dbaca02b040c09743ff5e975eb542 (patch)
treecc412b75a409bc0aac4b019086497e6df56c36cd /libjava/javax/net/ssl
parent70028d9d71e5a4f15a6ff901faea8da5b0ef287d (diff)
downloadppe42-gcc-c389f78a656dbaca02b040c09743ff5e975eb542.tar.gz
ppe42-gcc-c389f78a656dbaca02b040c09743ff5e975eb542.zip
* javax/net/ssl/SSLContext.java (getInstance): Add exception message
and/or cause before throwing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95075 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/javax/net/ssl')
-rw-r--r--libjava/javax/net/ssl/SSLContext.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/libjava/javax/net/ssl/SSLContext.java b/libjava/javax/net/ssl/SSLContext.java
index f69e2678beb..6cab45351bf 100644
--- a/libjava/javax/net/ssl/SSLContext.java
+++ b/libjava/javax/net/ssl/SSLContext.java
@@ -140,7 +140,7 @@ public class SSLContext
{
if (provider == null)
{
- throw new IllegalArgumentException();
+ throw new IllegalArgumentException("null provider");
}
Provider p = Security.getProvider(provider);
if (p == null)
@@ -174,13 +174,13 @@ public class SSLContext
}
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);
}
}
OpenPOWER on IntegriCloud