Mailinglist Archive: yast-devel (105 mails)

< Previous Next >
Re: [yast-devel] Enforcing okButton and cancelButton
  • From: Stefan Hundhammer <sh@xxxxxxx>
  • Date: Thu, 4 Sep 2008 16:00:49 +0200
  • Message-id: <200809041600.50138.sh@xxxxxxx>
On Donnerstag, 4. September 2008, Arvin Schnell wrote:
What should I do? Open a dialog stating that I coulnd't open a
dialog? Or log an error and abort (what happens already)?

Any action will just make the code unreadable for almost no
benefit.

If you read back on the archive of this list, those were almost my exact words
when this discussion was brought up late last year.

In most cases, you can't continue. Game over. And the UI will even post a
pop-up (if still possible) with the exact C++ exception text.

But still, if there is a reasonable way to continue, or if code is part of a
library that can get invalid values from the outside and still react
reasonably, the possiblity is there to handle errors gracefully. But in most
cases it won't be worth the hassle; something is already broken somewhere.


CU
--
Stefan Hundhammer <sh@xxxxxxx> Penguin by conviction.
YaST2 Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Nürnberg, Germany
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >