cause2e icon indicating copy to clipboard operation
cause2e copied to clipboard

Exception handling

Open dg46 opened this issue 3 years ago • 1 comments

Currently, we have only minimal handling of exceptions. Given that causal analyses with cause2e have a mostly fixed structure, it would be helpful for the users to receive clearer feedback, at least whenever their input for the main analysis methods cannot be processed as desired.

Steps:

  • identify frequent sources of errors
  • write custom exception types for them to avoid confusion with other errors
  • handle each exception in a way that enables the users to adapt their input accordingly (or inform them whenever the desired functionality is implemented)

dg46 avatar Jan 25 '22 15:01 dg46

An example for the desired state of exception handling is the recently added spellchecking for variable names in the domain knowledge, which is handled by telling the user the name of the problematic variable and asking them to do a spellcheck on their input.

dg46 avatar Jan 25 '22 15:01 dg46