Skip to content

Commit 2543519

Browse files
committed
Throws exception instead of printStackTrace
1 parent 60b6375 commit 2543519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/beanio/internal/util/DomUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static Document newDocument() {
6565
* @param title the name of the DOM
6666
* @param document the DOM to print
6767
*/
68-
public static void print(String title, Node document) {
68+
public static void print(String title, Node document) throws BeanIOException{
6969
try {
7070
TransformerFactory factory = TransformerFactory.newInstance();
7171
Transformer trans = factory.newTransformer();
@@ -82,7 +82,7 @@ public static void print(String title, Node document) {
8282
System.out.println("-------------------------------------------");
8383
}
8484
catch (Exception ex) {
85-
ex.printStackTrace();
85+
throw new BeanIOException(ex);
8686
}
8787
}
8888
}

0 commit comments

Comments
 (0)