#28 Complicated use of ValueError

Ouvert
Créé il y a 4 ans par rparedis · 0 commentaires

Description:

All errors in the simulator make use of the ValueError, which may cause some confusion. It might be better to split these into multiple custom errors for a more fine-grained approach.

All these errors should also automatically be logged to the logger.

Examples:

  • InvalidAlgebraicLoopError to be raised when a loop solver cannot solve the loop.
  • AlgebraicLoopError to be raised when a loop solver encounters an error in solving the loop. I.e., singular matrices, unknown elements, delayblock being used at time > 0...
  • CBDError when there is an error in the Core
  • DependencyGraphError
  • RungeKuttaError
  • SignalError when block gets invalid input during simulation
  • ...
**Description:** All errors in the simulator make use of the `ValueError`, which may cause some confusion. It might be better to split these into multiple custom errors for a more fine-grained approach. All these errors should also automatically be logged to the logger. **Examples:** - [ ] `InvalidAlgebraicLoopError` to be raised when a loop solver cannot solve the loop. - [ ] `AlgebraicLoopError` to be raised when a loop solver encounters an error in solving the loop. I.e., singular matrices, unknown elements, delayblock being used at time > 0... - [ ] `CBDError` when there is an error in the `Core` - [ ] `DependencyGraphError` - [ ] `RungeKuttaError` - [ ] `SignalError` when block gets invalid input during simulation - ...
Connectez-vous pour rejoindre cette conversation.
Pas d'étiquette
BUG
Aucun jalon
Pas d'assignataire
1 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.