RAFCON icon indicating copy to clipboard operation
RAFCON copied to clipboard

Raise ValidityException (und subclasses) on validity violations

Open franzlst opened this issue 4 years ago • 0 comments

Instead or raising builtin Python exceptions (ValueError, etc), custom RAFCON ValidityException should be raised in their proper subclasses (e.g. DataPortTypeMismatchException).

This would e.g. allow to write more future-safe code then e.g. the following example from state_element.py: if "not have matching data types" in message:

Originally created by @franzlst ([email protected]) at 2019-07-15 13:16:42+00:00 (moved from RMC internal repository)

franzlst avatar Apr 17 '20 10:04 franzlst