zio icon indicating copy to clipboard operation
zio copied to clipboard

Remove deprecated catchNonFatalOrDie operator (#10222)

Open developerfred opened this issue 1 month ago • 3 comments

The catchNonFatalOrDie operator was deprecated in #10052 and is now being completely removed. Users should migrate to using catchSome with NonFatal pattern matching or catchAll with manual NonFatal checking.

Migration guide:

  • Replace: zio.catchNonFatalOrDie(handler)
  • With: zio.catchSome { case NonFatal(e) => handler(e) }

Closes #10222

developerfred avatar Nov 17 '25 15:11 developerfred

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Nov 17 '25 15:11 CLAassistant

You can't remove operator without breaking binary compatibility. Can you alias it to catchAll?

hearnadam avatar Nov 20 '25 17:11 hearnadam

You can't remove operator without breaking binary compatibility. Can you alias it to catchAll?

yeah its possible!

developerfred avatar Nov 20 '25 18:11 developerfred