mpeterv 4adfd7a501 Support table errors in socket.newtry/protect
Instead of simply wrapping errors in a table in newtry
and considering all tables exceptions in protect, add
a metatable to exception wrapper and check that. This allows
using protect with functions that may throw error objects.

Additionally, assign __tostring metamethod to the exception
metatable so that unhandled exceptions can be viewed normally.
2016-02-16 11:23:07 +03:00
..
2015-08-22 19:52:01 -03:00
2015-08-21 22:31:29 -03:00
2015-03-01 20:34:53 +01:00
2015-08-25 15:41:40 -03:00
2015-08-22 19:52:01 -03:00
2016-02-16 11:13:22 +03:00
2013-06-11 19:10:03 +08:00
2016-02-16 11:13:22 +03:00
2013-06-11 19:10:03 +08:00
2009-05-27 09:31:38 +00:00
2015-08-21 22:31:29 -03:00
2016-02-16 11:13:22 +03:00
2012-04-23 00:18:45 +08:00
2009-05-27 09:31:38 +00:00
2016-02-11 15:56:57 +03:00
2013-06-11 17:20:27 +08:00
2016-02-11 15:54:59 +03:00
2015-08-22 19:52:01 -03:00