diff options
author | Mark Wielaard <mark@klomp.org> | 2005-01-17 23:50:23 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-01-17 23:50:23 +0000 |
commit | dbc522ef398a62f70767ef3eb5c2fdcc11b622ab (patch) | |
tree | 3edcca52629ac1bdaec5188efab483f0e249a222 /libjava/java/text | |
parent | c625c898d13ffee04ef798c56408ddc6f0867278 (diff) | |
download | gcc-dbc522ef398a62f70767ef3eb5c2fdcc11b622ab.zip gcc-dbc522ef398a62f70767ef3eb5c2fdcc11b622ab.tar.gz gcc-dbc522ef398a62f70767ef3eb5c2fdcc11b622ab.tar.bz2 |
MessageFormat.java (scanFormat): Chain thrown exception.
2004-12-07 Mark Wielaard <mark@klomp.org>
* java/text/MessageFormat.java (scanFormat): Chain thrown exception.
From-SVN: r93795
Diffstat (limited to 'libjava/java/text')
-rw-r--r-- | libjava/java/text/MessageFormat.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/java/text/MessageFormat.java b/libjava/java/text/MessageFormat.java index 787bc6f..171fffe 100644 --- a/libjava/java/text/MessageFormat.java +++ b/libjava/java/text/MessageFormat.java @@ -283,7 +283,9 @@ public class MessageFormat extends Format } catch (NumberFormatException nfx) { - throw new IllegalArgumentException("Failed to parse integer string"); + IllegalArgumentException iae = new IllegalArgumentException(pat); + iae.initCause(nfx); + throw iae; } // Extract the element format. |