Anonymous user
Icon+Unicon/Intro: Difference between revisions
→error trapping
Line 278:
Terminates the current program and writes the result of expression to a file (&errout by default).
====error trapping====
The keyword '&error' is normally zero, but if set to a positive value, this sets the number of fatal errors that are tolerated
Various idiomatic simplifications can be applied depending on your needs.
====error throwing====
Errors can be thrown using the function runerr(number, variable)
|