vovgou/loxodon-framework

What is the reason of catching all exceptions in `Subject<>.Publish`

kondratov-saritasa opened this issue · 1 comments

Hi @vovgou

I am wondering what is the reason of trapping all exceptions here:

MVVM is heavily relaying on messaging system and it is sometime hard to debug issues due to that trap. I might prepare a PR with adding a conditional compilation flag which enables the rethrow. Something like:

{
catch(Exception)
{
#if DEBUG_MESSAGING
    throw;
#endif
}

What do you think?

ok,you are right, I will update the code in the next version and throw an exception when in debug mode.