Ensuring Exhaustive Error Handling in Effect-Native API for Kafka Consumers

Is there an Effect-native API for ensuring all failures are handled? For instance, I just found myself coming up with this little helper function:
const exhaustiveErrorHandling = <A, R>(e: Effect.Effect<A, never, R>) => e;

while working on a Kafka consumer. For every anticipated error case, I wanted to describe whether the message should be discarded or its processing retried. And I wanted to make sure that I didn't miss any of the failures tracked by the type system.
Was this page helpful?