]> source.dussan.org Git - poi.git/commitdiff
use JDK 1.4 compatible constructor for IllegalStateException
authorYegor Kozlov <yegor@apache.org>
Sat, 19 Jan 2008 14:27:02 +0000 (14:27 +0000)
committerYegor Kozlov <yegor@apache.org>
Sat, 19 Jan 2008 14:27:02 +0000 (14:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@613395 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/DVRecord.java

index e5527d61f19a0429d3c00c42c163bcdc7d7b7831..a7b68a1743ff9f4d7cb13df8bec30e1ad40ca62c 100644 (file)
@@ -187,10 +187,13 @@ public class DVRecord extends Record
        this.field_not_used_2 = in.readShort();
 
        //read sec formula data condition
-       // Not sure if this was needed or not...
+       //Not sure if this was needed or not...
        try {
            in.skip(this.field_size_sec_formula);
-       } catch(IOException e) { throw new IllegalStateException(e); } 
+       } catch(IOException e) {
+           e.printStackTrace();
+           throw new IllegalStateException(e.getMessage());
+       }
 
        token_pos = 0;
        while (token_pos < this.field_size_sec_formula)