🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #46151

Re: Chooser and Error Handling

#46151
From: Mark B. Johnson
Date: Tue, 13 Feb 1990 19:45
24 lines
1750 bytes
In article <6664@internal.Apple.COM> dowdy@apple.com (Tom Dowdy) writes:
>
>For excellent error handling, see the MacApp Failure mechanism, which may 
>also be available from DTS in one of the sample code sets (Mark?).  I've 
>used the FailNIL(), FailOSErr() type calls in many non-MacApp programs.  
>They work well and really stay out of the way of your code.  In addition, 
>code can choose to allow certain errors to happen in the normal course of 
>things, catch them, clean up and continue.  Classic examples of this would 
>be using the EOF error to terminate reading from a file.  Larry can 
>probably give other good examples from the MacApp source.
>

See Macintosh Technical Note #88, Signals and Macintosh Sample Code #12 by
the same name.  Both are available for anonymous FTP from Apple.com (IP
address 130.43.2.2).  Look in the ~ftp/pub/dts/mac directory.


-- 
Mark B. Johnson                                            AppleLink: mjohnson
Developer Technical Support                         domain: mjohnson@Apple.com
Apple Computer, Inc.         UUCP:  {amdahl,decwrl,sun,unisoft}!apple!mjohnson

"You gave your life to become the person you are right now.  Was it worth it?"
                                                         - Richard Bach, _One_
Technical Details
Message-ID: <38599@apple.Apple.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!apple!mjohnson
References: <1990Feb12.220022.19862@utzoo.uucp> <25d7743b.425f@polyslo.CalPoly.EDU> <6664@internal.Apple.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!apple!mjohnson
From: mjohnson@Apple.COM (Mark B. Johnson)
Newsgroups: comp.sys.mac
Subject: Re: Chooser and Error Handling
Message-ID: <38599@apple.Apple.COM>
Date: 13 Feb 90 19:45:40 GMT
References: <1990Feb12.220022.19862@utzoo.uucp> <25d7743b.425f@polyslo.CalPoly.EDU> <6664@internal.Apple.COM>
Organization: Apple Computer Inc, Cupertino, CA
Lines: 24