Handling ParseError in Effect Schema: Service vs. Detached Approach
I have a set of services, including a service that fetches some content via API. This service has a set of methods like
Is it better (or recommended) to handle the error in the method within the service like;
or detached from the service like;
getAllOrders and getOrderById which parses the json response through Effect.Schema and returns the content in an Effect. There was an issue with a type in the schema which resulted in Effect.Schema crashing with a ParseError. Is it better (or recommended) to handle the error in the method within the service like;
or detached from the service like;
