Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise ValidityException (und subclasses) on validity violations #760

Open
franzlst opened this issue Apr 17, 2020 · 0 comments
Open

Raise ValidityException (und subclasses) on validity violations #760

franzlst opened this issue Apr 17, 2020 · 0 comments

Comments

@franzlst
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant