Error and catching updates #1370
louthy
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Based on this discussion the
Errortype has had a few changes:Equalsoperators have been removed. Meaning that allErrortypes use the built-in record structural equality.Is<E>() where E : Exception, the test for an exceptional error contained within theError, has been renamed toHasException<E>().IsType<E>() where E : Errorhas been added to test ifthiscontains anE. It's likethis is E, but becausethismight contain many-errors, it checks for the existence of anyErrorof typeE.The
Catchextensions and the@catchcombinators have been updated:Catch(previously missing)Previous releases:
I did some minor releases that didn't get release notes, so here's a quick summary:
notFollowedByinParsecreports the correct positionuseAsync) and implicit (viause) support forIAsyncDisposableresourcesRunoverrides forEffweren't disposing of theEnvIOproperlyFin.Applymatching fixLiftMsupport forStreamT:Lift(IAsyncEnumerable<A>)orLift(IEnumerable<A>)to return aStreamT<M, A>LiftM(IAsyncEnumerable<K<M, A>>)andLiftM(IEnumerable<K<M, A>>)to also return aStreamT<M, A>This discussion was created from the release Error and catching updates.
Beta Was this translation helpful? Give feedback.
All reactions