Skip to content

Refactor error-handling #42

@UMR1352

Description

@UMR1352

Feature description

Each fallible operation should have its own error type tailored to model it.
Deprecate (or remove) the old Error type and refactor error-handling for each fallible operation our library provides.

Write errors that leverage std::error::Error functionalities and ensure they are as modular, correct, and informative as possible without exposing any unnecessary foreign type. See Sabrina's blog post for directions.

Motivation

A single huge Error enum for the whole crate doesn't cut it and it hinders the composability of our library's code, besides making it almost impossible for our users to recover from those errors.

Sub-issues

Metadata

Metadata

Assignees

Labels

dx-improvementMainly for DX team itself to track issues with features/fixes that improve dx.enhancementNew feature or request

Type

Projects

Status

Product Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions