Skip to content

refactor proposal, use enum's implementing std::error::Error for error reporting #9

@dvdsk

Description

@dvdsk

Currently ziggurat uses static str slices containing a description of what went wrong. By instead building an error tree using enum's end users can easily match on errors and handle them. Even errors that can not be handled benefit if we implement std::error::Error. Then end users can print the cause of the error.

I suggest using the de-facto standard crate thiserror to derive std::error::Error on the enums.

Like #8 I would not mind implementing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions