Skip to content

Commit 4eb659d

Browse files
committed
improve tracability of XML errors (when spec has not been specified) #28
1 parent 107bcca commit 4eb659d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/beast/base/parser/XMLParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ BEASTInterface createObject(final Node node, final String classname) throws XMLP
935935
} catch (ClassNotFoundException e1) {
936936
// should never happen since clazzName is in the list of classes collected by the AddOnManager
937937
e1.printStackTrace();
938-
throw new RuntimeException(e1);
938+
throw new XMLParserException(node, "validate and intialize error: " + e1.getMessage(), 1107);
939939
}
940940

941941
// process inputs

0 commit comments

Comments
 (0)