Skip to content

Error types everywhere instead of String #942

Open
@fluffysquirrels

Description

@fluffysquirrels

Some of the errors returned by the library implement the std::error::Error trait and some are just Strings. I propose all errors returned by the library implement std::error::Error to simplify error handling for consumers.

In the cases where we only have a String to return, this can be wrapped in an enum that implements Error.

This would of course be a breaking change.

Would you be interested in a PR for this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions