En/na Hans-Peter Diettrich ha escrit:
Insert your exception handler in an more appropriate place, depending on
the concrete application. The user can expect a diagnosis of what went
wrong, and a chance for correcting his preceding input.
For data aware components (and probably for others
On Mon, 16 Mar 2009, Hans-Peter Diettrich wrote:
Michael Van Canneyt schrieb:
Is there a reason why the default exception dialog has a cancel
button to kill the application ?
An unhandled exception IMO is due to some software bug, which the user
cannot cure in any way.
That's a
Michael Van Canneyt wrote:
On Mon, 16 Mar 2009, Hans-Peter Diettrich wrote:
Michael Van Canneyt schrieb:
Is there a reason why the default exception dialog has a cancel
button to kill the application ?
An unhandled exception IMO is due to some software bug, which the user
cannot cure
Michael Van Canneyt schrieb:
An unhandled exception IMO is due to some software bug, which the user
cannot cure in any way.
That's a very restrictive definition of exception. An exception is
a way to stop the normal logic and flow of the program.
ACK. And try-except clauses are the way to
On Tue, Mar 17, 2009 at 10:38 AM, Michael Van Canneyt
mich...@freepascal.org wrote:
Borland explains this use in detail in chapter 14 of the Delphi 7
manual.
Or chapter 13 in the Kylix 3 Developers Guide. ;-)
[...at least I still have one use for Kylix... It's help files and
documentation.]
Michael Van Canneyt wrote:
On Mon, 16 Mar 2009, Hans-Peter Diettrich wrote:
Michael Van Canneyt schrieb:
Is there a reason why the default exception dialog has a cancel
button to kill the application ?
An unhandled exception IMO is due to some software bug, which the user
Michael Van Canneyt wrote:
If a component throws an exception outside any call from your code
(which you can place in a try except end), a place like OnDataReceived
which is triggered automatically, then this component has a bug (IMHO).
The component *should* have something like an OnError
Please note, I don't use db-aware components, but here follows the
help from Kylix 3.
On Tue, Mar 17, 2009 at 3:46 PM, Martin Friebe laza...@mfriebe.de wrote:
I have to admit, I have limited knowledge of the exact details of the
data-aware components, and rather was making a general case about
On Tue, Mar 17, 2009 at 3:46 PM, Martin Friebe laza...@mfriebe.de wrote:
Anyway, the point is, if we are looking at the original source of the
discussion (the build-in exception dialog) = that is at best the most
limited case of handling an exception (It is simply displaying it). It
does not
Graeme Geldenhuys wrote:
Please note, I don't use db-aware components, but here follows the
help from Kylix 3.
On Tue, Mar 17, 2009 at 3:46 PM, Martin Friebe laza...@mfriebe.de wrote:
I have to admit, I have limited knowledge of the exact details of the
data-aware components, and rather
Michael Van Canneyt wrote:
Is there a reason why the default exception dialog has a cancel
button to kill the application ?
We often use an exception to signal wrong entry of data or so,
because it stops all further processing.
If the user then uses the cancel button, the program is
On Mon, Mar 16, 2009 at 3:14 PM, Michael Van Canneyt
michael.vancann...@wisa.be wrote:
Is there a reason why the default exception dialog has a cancel
button to kill the application ?
I have been wondering that for 5 years (since I moved from Delphi),
but was to shy to ask. ;-)
Regards,
-
Oh, good point to discuss about the use of exceptions.
I use exceptions only for really unexpected things.
That a user will sometimes input wrong data must be expected by a programmer so
I do not treat this as an exception.
With unexpected things I mean all the things that are outside my code.
Michael Van Canneyt пишет:
Hello,
Is there a reason why the default exception dialog has a cancel
button to kill the application ?
We often use an exception to signal wrong entry of data or so,
because it stops all further processing.
If the user then uses the cancel button, the
On Mon, Mar 16, 2009 at 23:44, Paul Ishenin webpi...@mail.ru wrote:
Michael Van Canneyt wrote:
Is there a reason why the default exception dialog has a cancel
button to kill the application ?
We often use an exception to signal wrong entry of data or so,
because it stops all further
Michael Van Canneyt schrieb:
Is there a reason why the default exception dialog has a cancel
button to kill the application ?
An unhandled exception IMO is due to some software bug, which the user
cannot cure in any way.
We often use an exception to signal wrong entry of data or so,
16 matches
Mail list logo