Date : Wed, 28 Mar 1984 06:49:04-MST
From : Rick Conn <RCONN@SIMTEL20.ARPA>
Subject: ZCPR3 Intro - Message 6: Error Handlers
ZCPR3 - Error Handlers
Under ZCPR3, Error Handlers are programs
which handle command line errors in a "nice" way.
They may be used anywhere, including within ZEX
command files. A few examples:
B1:WORK2>NOTE There are a number of error handlers on this system:
B1:WORK2>dir root:error?.com s
ERROR1 .COM 2r| ERROR2 .COM 4r| ERROR3 .COM 2r| ERROR4 .COM 2r
A15:ROOT -- 4 Files Using 10K ( 204K Left)
Error Handlers are installed by simply giving
their name.
B1:WORK2>error4
ERROR4, Version 1.0
Error Handler Installed
B1:WORK2>NOTE ERROR4 is a simpler error handler
B1:WORK2>NOTE with the invalid command "XXXX";xxxx
File XXXX.COM Not Found
B1:WORK2>NOTE ERROR4 simply says what happened
Error Handlers may vary in features and
complexity. ERROR1 is one of the more complex.
ERROR2, by the way, is a screen-oriented version of
ERROR1, using reverse video and cursor addressing.
See the section on Z3TCAP later for more details.
B1:WORK2>error1;NOTE ERROR1 is a more sophisticated error handler
ERROR1, Version 1.0
Error Handler Installed
B1:WORK2>xxxx
ERROR1, Version 1.0
Error Line is:
XXXX
Options are:
1. Replace Command in Error with a New Command
Replace XXXX
2. Advance to Next Command and Resume Processing
Advance to
3. Replace Entire Line with a New Line
Replace XXXX
4. Throw Away Entire Line and Continue
Throw Away XXXX
Select Option - 1
Replacement Command?
dir
DEMO .BAK 0 | DEMO .TXT 2 | DEMO .ZEX 2 | DEMO1 .TXT 2
DEMO2 .TXT 2 | DEMO3 .TXT 2 | RHEX .COM 2r| RHEX2 .COM 2r
B1:WORK2 -- 8 Files Using 14K ( 288K Left)
B1:WORK2>xxxx;dir *.com
ERROR1, Version 1.0
Error Line is:
XXXX;DIR *.COM
Options are:
1. Replace Command in Error with a New Command
Replace XXXX
2. Advance to Next Command and Resume Processing
Advance to DIR *.COM
3. Replace Entire Line with a New Line
Replace XXXX;DIR *.COM
4. Throw Away Entire Line and Continue
Throw Away XXXX;DIR *.COM
Select Option - 2
RHEX .COM 2r| RHEX2 .COM 2r
B1:WORK2 -- 2 Files Using 4K ( 288K Left)