cascaded_20error_20handling
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cascaded_20error_20handling [2018/03/31 13:19] – external edit 127.0.0.1 | cascaded_20error_20handling [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
//by Richard Russell, February 2007//\\ \\ See also [[/ | //by Richard Russell, February 2007//\\ \\ See also [[/ | ||
+ | <code bb4w> | ||
ON ERROR PRINT " | ON ERROR PRINT " | ||
Line 16: | Line 17: | ||
A = 1/0 | A = 1/0 | ||
ENDPROC | ENDPROC | ||
+ | </ | ||
\\ Using this technique you can take local action in the event of an error, appropriate to the conditions at the time, but pass responsibility for further error processing/ | \\ Using this technique you can take local action in the event of an error, appropriate to the conditions at the time, but pass responsibility for further error processing/ | ||
+ | <code bb4w> | ||
ON ERROR PRINT " | ON ERROR PRINT " | ||
Line 33: | Line 36: | ||
A = par/0 | A = par/0 | ||
ENDPROC | ENDPROC | ||
+ | </ | ||
Note that, if an error occurs, the location highlighted in the editor (or reported by means of a line number) will correspond to the most recent **ON ERROR** statement, not the place where the error originated. Some care may be be required in interpreting the results when debugging. | Note that, if an error occurs, the location highlighted in the editor (or reported by means of a line number) will correspond to the most recent **ON ERROR** statement, not the place where the error originated. Some care may be be required in interpreting the results when debugging. |
cascaded_20error_20handling.1522502347.txt.gz · Last modified: 2024/01/05 00:18 (external edit)