[fpc-pascal] using exceptions
Bart
bartjunk64 at gmail.com
Thu Dec 22 18:47:17 CET 2011
On 12/22/11, noreply at z505.com <noreply at 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
More information about the fpc-pascal
mailing list