aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/text
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2005-01-17 23:50:23 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-01-17 23:50:23 +0000
commitdbc522ef398a62f70767ef3eb5c2fdcc11b622ab (patch)
tree3edcca52629ac1bdaec5188efab483f0e249a222 /libjava/java/text
parentc625c898d13ffee04ef798c56408ddc6f0867278 (diff)
downloadgcc-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.java4
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.