Added RunTimeException handling

git-svn-id: svn://10.0.0.236/trunk@58366 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
leila.garin%eng.sun.com
2000-01-22 00:20:21 +00:00
parent 703d390a6d
commit 01b266bc36
128 changed files with 611 additions and 12 deletions

View File

@@ -79,6 +79,7 @@ public class ElementImpl_normalize extends BWBaseTest implements Execution
Document d = (Document)tobj;
if (d != null)
{
try {
Element e = d.getDocumentElement();
if (e == null) {
TestLoader.logErrPrint("Document Element is NULL..");
@@ -86,6 +87,11 @@ public class ElementImpl_normalize extends BWBaseTest implements Execution
} else {
e.normalize();
}
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;