Is an unhandled exception acceptable?

After a lot of problems with a certain media player, it seemed to me that is it really acceptable to invite the user to start the debugger or terminate the application without any relevant information on this day and age?

0


source to share


8 answers


Apparently. Have you removed your media player?



Seriously, I would say no, this is not acceptable. But there seem to be a lot of sellers who disagree with me.
+2


source


Maybe not, but you know shit happens :). There is a big difference between "brilliant exception please call us" and "just the classic debug window message".



+1


source


After rebooting the media player "magically" seemed to work again, I just think "tell me what's wrong and I'll try to fix it" and not just come out to me.

0


source


Not really.

Until you can predict all the exceptions that may be affected in your program that you have not accounted for, you will surely catch System.Exception

at the top of your program and present a dialog box where the user has to provide information for you. (Possibly even with an automated system to do this online.)

0


source


The agreed upon is definitely the "last line of defense", in which case, as you say, System.Exception should give the user a clue of what is wrong so that they can take action.

0


source


Is it just laziness or incompetence on the part of the developer?

0


source


Not.

(Actually that's my whole answer, but SO doesn't like answers that were terse, so I had to add this random sentence!) -

0


source


Depends on your audience imho.

If you target "average Joe" users, I would say that you will realize that your mother of the exception is at the top. Quit the application and notify the user that something went wrong (please do not use the "call us" or "Report a bug" prompt - they are useless).

If you target developers (internal development), an unhandled exception is fine, IMHO, but your best bet would be to print and / or write the stack trace and all other information you got from the link to the site where it says who is responsible for app and who to contact if the problem persists.

0


source







All Articles