Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric overflow error
Message
De
23/06/2023 11:39:19
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01686774
Message ID:
01686780
Vues:
44
>>Ah, if you already have the oError object, why don't you pass that object to your error handler, and write out all the properties that may be relevant. There's more info in there than just the error message.
>
>How do you "pass the object to the error handler"?
>My error handler is Try/Catch with Catch to oError. And the oError.message says "Numeric overflow. Data Lost"

Ah okay, not calling any general routine to handle errors but rather doing it on the spot. Stylistic difference, of the „where does the code go“ kind. Irrelevant. The error handler routine, when one is written, should accept the exception object as a parameter, that's what I meant.

>What am I missing?

Other properties of oError - it can give you line number, source line, perhaps the name of the thing where it happened (field, property - not each time) and a few other things. Check it out, class exception, its PEMs.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform