Skip to content

Implement custom reconciler errors #55

Open
@aran

Description

In writing a custom reconciler for a data type to use with autosurgeon(with=..., I want to call a method that returns a Result.

To return an error from that Result, I need an API to allow me to construct an instance of Reconciler::Error. Currently that type is std::error::Error + From<StaleHeads>. Adding something like From<some::error::Type> or adding a method to Reconciler like error(some::error::Type) would allow me to communicate errors back to the reconcile caller.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions