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)