jacksonh / manos

Manos is an easy to use, easy to test, high performance web application framework that stays out of your way and makes your life ridiculously simple.
Other
454 stars 61 forks source link

The boundary "eats" exceptions #127

Open ghost opened 13 years ago

ghost commented 13 years ago

When using sync blocks, exceptions in the sync block are eaten by the boundary. It'd be much better to catch those and throw them back at user next time sync blocks are used on the same context.

txdv commented 13 years ago

Or lets wait for C# 5.0! No, seriously, this is an issue :) Action<Exception> !

ghost commented 13 years ago

Unfortunately, no. The exception inside the boundary must propagate out of the context thread, to the person that called into the boundary. Action can't do that. Firing the callback on the next call into the boundary works, of course, but that's inferior to just throwing the exception outright.