[Httpunit-commit] CVS: httpunit/site/com/meterware/xml DocumentSemantics.java,1.2,1.3
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2003-05-27 05:25:11
|
Update of /cvsroot/httpunit/httpunit/site/com/meterware/xml In directory sc8-pr-cvs1:/tmp/cvs-serv424/site/com/meterware/xml Modified Files: DocumentSemantics.java Log Message: Show target exception when received Index: DocumentSemantics.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/site/com/meterware/xml/DocumentSemantics.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- DocumentSemantics.java 26 May 2003 15:42:13 -0000 1.2 +++ DocumentSemantics.java 27 May 2003 05:15:21 -0000 1.3 @@ -49,6 +49,8 @@ public static void build( Document document, Object documentRoot, String documentName ) { try { interpretNode( getRootNode( document ), documentRoot ); + } catch (InvocationTargetException e) { + throw new RuntimeException( "Error interpreting document: " + documentName + ": " + e.getTargetException() ); } catch (Exception e) { throw new RuntimeException( "Error interpreting document: " + documentName + ": " + e ); } |