Skip to content

Commit

Permalink
Added more failure types
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Jan 2, 2025
1 parent 8178a09 commit 6781d7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public enum FailureType {
UNCATETORIZED_FAULT,
UNITS_EXCEPTION,
UNKNOWN_IDENTIFIER,
SEDML_NO_SEDMLS_TO_EXECUTE, SEDML_PREPROCESS_FAILURE, UNSUPPORTED_NONSPATIAL_STOCH_HISTOGRAM
SEDML_NO_SEDMLS_TO_EXECUTE,
SEDML_PREPROCESS_FAILURE,
UNSUPPORTED_NONSPATIAL_STOCH_HISTOGRAM,
SOLVER_FAILURE

}
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ public static FailureType determineFault(Exception caughtException, List<TraceEv
return FailureType.SEDML_NO_SEDMLS_TO_EXECUTE;
} else if (errorMessage.contains("MappingException occurred: failed to generate math")) {
return FailureType.MATH_GENERATION_FAILURE;
} else if (errorMessage.contains("Process timed out")) {
return FailureType.TOO_SLOW;
} else if (errorMessage.contains("are in unnamed module of loader")){
return FailureType.SBML_IMPORT_FAILURE;
} else if (errorMessage.contains("Could not execute code")){
if (errorMessage.contains("CVODE")) return FailureType.SOLVER_FAILURE;
}

// else check Tracer error events for known faults
Expand Down

0 comments on commit 6781d7f

Please sign in to comment.