Atozed Forums
Handling of Exceptions - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: COSMOS Projects (https://www.atozed.com/forums/forum-19.html)
+--- Forum: COSMOS (https://www.atozed.com/forums/forum-20.html)
+---- Forum: COSMOS General Discussion (https://www.atozed.com/forums/forum-21.html)
+---- Thread: Handling of Exceptions (/thread-97.html)



Handling of Exceptions - Quajak - 04-14-2018

Hello,

Right now when an Exception is thrown the OS instantly closes (if it is not in a try catch block). This makes it difficult figuring out where the error is coming from. Is it possible to somehow show the error before closing (in the console like in a normal console application or in the debug output)?


RE: Handling of Exceptions - kudzu - 04-14-2018

Just add a try..except in your main func and log it there. 5 lines of code or so...