On 12/22/11, nore...@z505.com <nore...@z505.com> 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 - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal