Commit 6d8176f0 by Mark Wielaard Committed by Mark Wielaard

Toolkit.java (getDefaultToolkit): Add exception cause to AWTError.

       * java/awt/Toolkit.java (getDefaultToolkit): Add exception cause to
       AWTError.

From-SVN: r67542
parent 07bae5ad
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:
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment