Hello, mumpstereers
The trap mechanism in Mumps has similarities with the exception mechanism in many other language.
Most examples I have seem 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
This question is cross-posted on Stack Overflow: https://stackoverflow.com/questions/72215952/traps-as-exceptions
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 01:12:18 |
| Calls: | 12,098 |
| Calls today: | 6 |
| Files: | 15,003 |
| Messages: | 6,517,862 |