On 12/22/11, [email protected] <[email protected]> wrote:

> You don't see as much Try Except, it's more Try Finally. People ignore the
> exceptions because it's an accepted thing to do. Then the end user of the
> application gets a strange exception message instead of a user friendly
> one. For example, if a file is not found, I like to give a polite "Cannot
> find file" message.. but usually in delphi apps and examples all over the
> newsgroups you see just an EFileNotFound exception pop up instead. Or,
> with StrToInt, a similar obscure exception message to the end user instead
> of a more friendly one.

I tend to spend more time on catching errors and displaying user
friendly and useful error messages than I do on writing the core
functionality of most of my (simple) programs.

Bart
_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to