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

Improve way of handling Exceptions/Errors #1311

Open
rzw opened this issue Aug 11, 2024 · 1 comment
Open

Improve way of handling Exceptions/Errors #1311

rzw opened this issue Aug 11, 2024 · 1 comment

Comments

@rzw
Copy link

rzw commented Aug 11, 2024

Many issues here are about (explainable) crashes or program terminations. I would challenge the rationale behind the abrupt termination of the program upon all sorts of actions just because a user had done something external to the program. Wouldn't it be possible to just throw a message unable to... with a "try again" or cancel button. And if cancel is chosen just go back to the previous state. Even if the cause can't immediately be resolved it would at least be possible to copy edits to clipboard for pasting later or after a restart.

@TheJackiMonster
Copy link
Collaborator

Well, as the name says exceptions or errors are exactly that. If we would expect them to come up, they wouldn't really be what they are, right? Also it's not trivial to handle any kind of error inside of a more complex routine. Let's say out of 3 steps, the second fails throwing an error, you would still need to reverse the first step to cancel the routine. However it's not trivial to reverse any kind of function.

I think it should always be priority to fix errors or exceptions if possible. Next best thing is to avoid them. Only if none of this is possible, you need to handle them.

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

2 participants