Handling Custom Error with Effect.fail

Hello everyone. I've read the documentation, but maybe I'm too noob to understand what I should do with my custom error after I return it with Effect.fail(new MyError())? If I send an invalid value to my function that returns this error, how do I deal with it in the caller function?
Was this page helpful?