Skip to content

Should AnyDB wrap errors? #13

@grncdr

Description

@grncdr

From the README:

Things it might do:

  • Wrap errors.

Is this desirable? For now, you have to deal with whatever error types/constructors the underlying driver uses, but it might be nice to have a normalized hierarchy of error types as part of AnyDB.

Otherwise, we assume that users are either:

  • fine with their code being coupled to a specific driver
  • using a library that provides another level of abstraction (e.g. gesundheit) on top of AnyDB, and that this library should be responsible for normalizing errors.

I'm comfortable with those assumptions, but not confident that I've considered all angles of the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions