Skip to content

Create anyhow wrapper for unified REST error handling #313

@whankinsiv

Description

@whankinsiv

We currently construct error responses manually in rest_blockfrost for each failure case (parameter parsing, Bech32 conversion, etc.). As suggested by @SupernaviX, introducing a unified AppError type that wraps anyhow::Error and implements From for RESTResponse would simplify error handling across the module. This abstraction will allow REST handlers to use ? error propagation and ensure consistent error responses.

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