Managing Unexpected Errors and Mapping Thrown Errors for Integration with External Systems
Just reading about unexpected errors https://www.effect.website/docs/tutorial/error-management/unexpected-errors
There's a warning stating:
Couldn't a thrown error be mapped to a safe error or am I misunderstanding something?
Eg: If i'm integrating with some third party library and want to make it safe
There's a warning stating:
There is no sensible way to recover from defects. The functions we're about to discuss should be used only at the boundary between Effect and an external system, to transmit information on a defect for diagnostic or explanatory purposes.
Couldn't a thrown error be mapped to a safe error or am I misunderstanding something?
Eg: If i'm integrating with some third party library and want to make it safe
