Handling errors in Layers in Effect Typescript library

How do you recover from errors in Layers? I did a search for Layer.catchAll in the whole Effect codebase and nothing came up.

I have a Layer Layer.Layer<Service, MigrationError | SqlError | ConfigError, never>, how do I turn this layer into a Layer.Layer<Service, never, never>? Or am I thinking about this wrong, and I should handle the errors in the Service itself?
Was this page helpful?