Skip to content

Error handling #94

Open
Open
@NYBACHOK

Description

@NYBACHOK

Problem to solve

Error handling is omitted from tasks. Panic, Result and Option never get mentioned in idioms chapter nor ecosystem.

Proposal

Add task to 3_ecosystem where it would be required to refactor library code from manual mapping errors to usage of thiserror + write tests with usage of anyhow.

Prior art

https://doc.rust-lang.org/book/ch09-01-unrecoverable-errors-with-panic.html#unrecoverable-errors-with-panic

Alternatives

Error handling mentioned in 5_zero2prod.

Links & references

https://doc.rust-lang.org/book/ch09-01-unrecoverable-errors-with-panic.html#unrecoverable-errors-with-panic

https://docs.rs/thiserror/latest/thiserror/

https://docs.rs/anyhow/latest/anyhow/

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