Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where can we buy a Errorhandler for our framework?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00155961
Message ID:
00155979
Vues:
24
>Hello,
>
>At the moment we are using VisualFoxPro 6.0. We 'finished' our framework at the moment.
>
>However we still need a good errorhandler. Does anybody know where we could buy a very extensive error handler to intregrate in our framework??
>
>Thanks in advance!

What most people would classify as an 'extensive' error handler goes beyond a routine specified in ON ERROR. The most extensive ones have code in every error event of every object. These frameworks pass an error up the class heirarchy, and then up the containership heirarchy until some error method code handles it, only passing the error to the ON ERROR routine as a last resort.

What I am getting at, is that an extensive error handler doesn't come in a neat little package, and I have never seen one for sale. (That doesn't mean that there are none).

IMHO, the best you can do is write your error handler yourself. Only you know how it will integrate into your framework, especially if you wrote your framework.

One thing that you can steal from others is ideas. There have been lots of articles written on this subject, and there are lots of cool little tricks to be done, but the most important is the ability to cleanly save the user's data shutdown the program or cancel out of the offending routine.


BTW, my favorite add-ons for error handlers are-

-logging - my error records the error message and offending code, date and time, current user, all active forms and their captions, all alias and GETFLDSTATE info, contents and scope of all defined variables, the entire call stack, and all system settings. There are very few errors that I can't pinpoint from my log).

-the ability to invisibly send you (the developer) an email message and optionally the error info.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform