DCSIMG
exception handling - Bnaya Eshet

Bnaya Eshet

Disclaimer

Browse by Tags

All Tags » exception handling (RSS)
Async and AggregateException
Async and AggregateException this post is a complementary to Eran Stiller's post . I was reading Eran Stiller's post about exception handling using async methods and I want to add a few side notes. 1) the exception handling behavior decisions is well documented in this post (by the TPL team), it decided after they had consider different options. 2) I was suggesting that compiler will check whether the a catch of AggregateException is implemented and if so to avoid the unwrapping behavior...
Will it crash my process
Will it crash my process here is a short question, it was taken from a real life bug that occurs at one of my customers . will the following code crash the process? Code Snippet List < object > items = new List < object >(); try { Parallel .For(0, 10000000, t => { items.Add( "1" ); }); } catch ( AggregateException ex) { } it is a non thread safe code that should throw an IndexOutOfRangeException. but it wouldn't crash the process, but what about the following code? Code...
Rx - Exception Handling
Rx - Exception Handling this post will discuss exception handling within the Rx arena. handling event stream exception is not trivial, for example observable should delegate exception to its subscribers though the OnError operation and cancel the subscription . on the other hand the subscriber may want to response OnError state by renewing its subscription or fallback to alternative stream . it is true that the Rx design guidelines suggest that faulted stream should not continue to produce data,...