4,493
edits
(→Misc: +Error-guards) |
|||
(One intermediate revision by the same user not shown) | |||
Line 188: | Line 188: | ||
But even in such a case the problem should be communicated. I found the idea of a watchdog application very useful, which, among other tasks, is listening to UDP telegrams on a particular port. An application in trouble can then send a telegram to the watchdog, telling about the problem. Using a type of error class, the client can tell the watchdog about the seriousness of the problem, and the watchdog can then decide to simply display it on it's GUI or send a SMS message or/and an email to the admin. | But even in such a case the problem should be communicated. I found the idea of a watchdog application very useful, which, among other tasks, is listening to UDP telegrams on a particular port. An application in trouble can then send a telegram to the watchdog, telling about the problem. Using a type of error class, the client can tell the watchdog about the seriousness of the problem, and the watchdog can then decide to simply display it on it's GUI or send a SMS message or/and an email to the admin. | ||
== Code == | == Code == | ||
Line 789: | Line 768: | ||
</source> | </source> | ||
}} | }} | ||
== See also == | |||
* [[Dfn#Error-guards|Dfn error-guards]] | |||
* [[Error trapping in Dyalog APL forms]] | |||
== External links == | |||
=== Lessons === | |||
* Error handling webinars: [https://dyalog.tv/Webinar/?v=tDK0AKXXRAk part 1], [https://dyalog.tv/Webinar/?v=PSrXyk5tN6o part 2], [https://dyalog.tv/Webinar/?v=jkD-iQfjo_Q part 3], [https://dyalog.tv/Webinar/?v=G7Ht8iKvDMo part 4], [https://dyalog.tv/Webinar/?v=WP6R7VRmHfc part 5] | |||
* [https://chat.stackexchange.com/rooms/52405/conversation/lesson-13-code-management-i-o-dates-unicode-files-errors#42339704 APL Cultivation] | |||
=== Documentation === | |||
* [https://help.dyalog.com/latest/#Language/System%20Functions/signal.htm Signal Event] | |||
* [https://help.dyalog.com/latest/#Language/Errors/APL%20Errors.htm Error messages] | |||
* [https://help.dyalog.com/latest/#Language/System%20Functions/trap.htm Trap Event] | |||
* [https://help.dyalog.com/latest/#Language/Control%20Structures/trap.htm Trap Statement] | |||
* [https://help.dyalog.com/latest/#Language/System%20Functions/dm.htm Diagnostic Message] | |||
* [https://help.dyalog.com/latest/#Language/System%20Functions/en.htm Event Number] | |||
[[Category:Tutorials]][[Category:Dyalog APL examples]] | [[Category:Tutorials]][[Category:Dyalog APL examples]] | ||
{{APL development}} |