Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
More informative error message for incorrect databases
Browse files Browse the repository at this point in the history
When we declare a node is a child of another node (in a tree)
the code actually checks to see if this is true. When it is
not a child, it prints a warning message to the screen.
Since 2005 this has been "Father __ Child __", which means
so little to anyone that we didn't realize it was even a warning.

Now maybe someone will be motivated to fix the dictionaries!

Richard West rwest@mit.edu
  • Loading branch information
mrharper committed Apr 1, 2010
1 parent 84b5e65 commit 4d40223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/RMG/jing/chemUtil/HierarchyTreeNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public HierarchyTreeNode(Matchable p_element, int p_depth) {
public void addChildren(HierarchyTreeNode p_child) throws HierarchyTreeNodeException, InvalidHierarchyRelationException {
//#[ operation addChildren(HierarchyTreeNode)
if (!(p_child.isSubAtCentralNodes(this))) {
String s = "Father " + ((Matchable)(this.element)).getName() + " Child " + ((Matchable)(p_child.element)).getName();
String s = "Error in database: " + ((Matchable)(p_child.element)).getName() +" is not actually a child of "+ ((Matchable)(this.element)).getName();
System.out.println(s);
//throw new InvalidHierarchyRelationException(s);
}
Expand Down

0 comments on commit 4d40223

Please sign in to comment.