The trap mechanism in Mumps has similarities to the exception mechanism in many other language.
Most examples I have seen of trap usage is for catching unintentional errors.
Is there also a way intentionally trigger an error, which can be caught by a trap, in a way that is similar to throwing an exception?
I am working with GT.M V7.0. Iām learning about traps from here:
http://tinco.pair.com/bhaskar/gtm/doc/books/pg/UNIX_manual/ch13s06.html