Skip to content

TaggedError requirement #235

Description

@rrmesquita

Problem

— I would open this as a discussion, but this repo has disabled discussions tab.

First, thank you so much for the effort you've put in this library. It looks great at a glance!

I wonder if the usage of TaggedError is a hard requirement for this lib to work well, or if it can be used with normal errors too. I ask this because we already use another solution for modelling domain errors, so depending on this library at this level is almost an adoption barrier. Nevethrow allows anything to be used in error paths, so I assume the role of TaggedError is to filter which errors are modeled and which are unexpected. To be clear, I'm just asking the design decision behind TaggedError.

Proposed solution

I think a better interoperability with the user's existing errors could greatly increase this library's adoption.

Alternatives considered

No response

Scope check

  • I've read CLAUDE.md and this doesn't duplicate an existing concept or a deliberately-excluded one (generator do-notation, error accumulation, aliases, an Option type).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions