TIP: Click on subject to list as thread! ANSI
echo: delphi
to: HENK HAMERS
from: BRYAN SMITH
date: 1996-12-28 18:10:00
subject: Scope of Try-Except

On 26 Dec 96 Henk Hamers said to Bryan Smith...
 HH> The way you are using Except is to general. By using your routine you
 HH> would trigger to many faults to one routine. The basic concept for the
 HH> try Except routine is that you for instance in calculation routines
 HH> don't have to check for every line of code you use if an error occurs.
 HH> By coding the entiry program in a try except block seems like you
 HH> don't trust your program. Try using the try except block only on
 HH> critical code in your program.
This is a program that processes a user-written script, and almost all
errors will arise from user scripting errors.  Hence it seems appropriate to
route all errors back to the same error routine (by deliberately creating an
exception).  The exception-handling routine can then say "you made such and
such an error on line number nnnn of your script."  Sorry, no zero-divides
in this program.  No number-crunching here, just text-bashing.
--- PPoint 2.00
---------------
* Origin: Kingston, Canada (1:249/109.11)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.