[Include] try/catch error handling
#9

Major update. I rewrote the include twice.

It now supports return statements, nested try/catch statements (not in the same function), and finally.

If you return something in try or catch, it will execute finally then return the original value. Unless, of course, if you return something different in finally.

It's almost ready for production use - I still have some minor things to add, and lots of testing to do.
Reply


Messages In This Thread
try/catch error handling - by Slice - 24.03.2013, 16:49
Re: try/catch error handling - by Dan.. - 24.03.2013, 17:03
Re: try/catch error handling - by Slice - 24.03.2013, 17:16
Re: try/catch error handling - by Dan.. - 24.03.2013, 17:34
Re: try/catch error handling - by Whitetiger - 24.03.2013, 19:37
Re: try/catch error handling - by Dan.. - 24.03.2013, 19:41
Re: try/catch error handling - by Misiur - 24.03.2013, 19:46
Re: try/catch error handling - by Slice - 24.03.2013, 20:21
Re: try/catch error handling - by Slice - 05.04.2013, 21:35
Re: try/catch error handling - by Slice - 05.04.2013, 22:54

Forum Jump:


Users browsing this thread: 2 Guest(s)