summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/awt/Toolkit.java5
2 files changed, 8 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 67a4e6e0d0f..c0e494a286b 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-06 Mark Wielaard <mark@klomp.org>
+
+ * java/awt/Toolkit.java (getDefaultToolkit): Add exception cause to
+ AWTError.
+
2003-06-06 Michael Koch <konqueror@gmx.de>
* javax/swing/plaf/basic/BasicOptionPaneUI.java:
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);
}
}