DEV Community

Discussion on: Exceptions Considered Harmful

 
pianomanfrazier profile image
Ryan Frazier

My usual pattern with 3rd party libraries is to catch the exception immediately around the function call then convert it to a Result. Some functional libraries even have a helper function for this. See Purify's encase function gigobyte.github.io/purify/adts/Eit...