summaryrefslogtreecommitdiff
path: root/libjava/java/awt/Toolkit.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2003-06-06 13:12:47 +0000
committerMark Wielaard <mark@gcc.gnu.org>2003-06-06 13:12:47 +0000
commit6d8176f05987fac7e6f58e5bea2ab739a14eea84 (patch)
treebf03204142f622534e7a761b637819418349bef0 /libjava/java/awt/Toolkit.java
parent07bae5ad21964fd180a8f85e300cf823dfa04b53 (diff)
downloadgcc-6d8176f05987fac7e6f58e5bea2ab739a14eea84.tar.gz
Toolkit.java (getDefaultToolkit): Add exception cause to AWTError.
* java/awt/Toolkit.java (getDefaultToolkit): Add exception cause to AWTError. From-SVN: r67542
Diffstat (limited to 'libjava/java/awt/Toolkit.java')
-rw-r--r--libjava/java/awt/Toolkit.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/libjava/java/awt/Toolkit.java b/libjava/java/awt/Toolkit.java
index 36615944a20..6fd1413895b 100644
--- a/libjava/java/awt/Toolkit.java
+++ b/libjava/java/awt/Toolkit.java
@@ -496,9 +496,10 @@ public abstract class Toolkit
toolkit = (Toolkit) obj;
return toolkit;
}
- catch (Exception e)
+ catch (Throwable t)
{
- throw new AWTError("Cannot load AWT toolkit: " + e.getMessage());
+ AWTError e = new AWTError("Cannot load AWT toolkit: " + toolkit_name);
+ throw (AWTError) e.initCause(t);
}
}