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

Replace sys.exit() with raise User Defined exceptions ? #27

Open
rjodon opened this issue Oct 14, 2020 · 2 comments
Open

Replace sys.exit() with raise User Defined exceptions ? #27

rjodon opened this issue Oct 14, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@rjodon
Copy link
Collaborator

rjodon commented Oct 14, 2020

I see plenty of sys.exit( 'ERROR: displacement {} not found in the model!'.format(disp))
I would rather create a bunch of compas exception class that could be useful and raise them when needed.

@rjodon rjodon added the enhancement New feature or request label Oct 14, 2020
@tomvanmele
Copy link
Member

agreed. compas_fea needs an exceptions module...

@franaudo
Copy link
Contributor

yeah...that was just to debug...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants