[Lazarus] Exception dialog

Luca Olivetti luca at wetron.es
Tue Mar 17 08:55:29 CET 2009


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 too), 
Application.OnException is the only place, otherwise you cannot trap 
exception that are no caused by your program flow but by intrinsic 
processing by the component (e.g. during post the database could reject 
the data due to failed constraints, you could trap BeforePost or 
AfterPost but not DuringPost).

Bye
-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133)  Fax +34 93 5883007



More information about the Lazarus mailing list