diff --git a/src/main/java/org/lemsml/jlems/core/type/dynamics/Dynamics.java b/src/main/java/org/lemsml/jlems/core/type/dynamics/Dynamics.java index 61fb70f..573baec 100644 --- a/src/main/java/org/lemsml/jlems/core/type/dynamics/Dynamics.java +++ b/src/main/java/org/lemsml/jlems/core/type/dynamics/Dynamics.java @@ -525,7 +525,7 @@ public Valued getValued(String select) throws ContentError { - public void checkEquations(HashMap cdimHM) throws ContentError { + public void checkEquations(HashMap cdimHM) throws ContentError{ HashMap dimHM = new HashMap(); @@ -559,7 +559,9 @@ public void checkEquations(HashMap cdimHM) throws ContentEr try { dimHM.put(dv.getName(), dv.getDimensionality(dimHM)); } catch (ContentError ce) { - E.error("Checking " + dv + " in " + r_type + " " + ce.getMessage()); + String errmsg = ("Checking " + dv + " in " + r_type + " " + ce.getMessage()); + throw new ContentError(errmsg); + } } @@ -567,7 +569,8 @@ public void checkEquations(HashMap cdimHM) throws ContentEr try { dimHM.put(cdv.getName(), cdv.getDimensionality(dimHM)); } catch (ContentError ce) { - E.error("Checking " + cdv + " in " + r_type + " " + ce.getMessage()); + String errmsg = "Checking " + cdv + " in " + r_type + " " + ce.getMessage(); + throw new ContentError(errmsg); } }