Skip to content

Make a 2 layer error typed system #3051

@gauron99

Description

@gauron99

Create a 2 layer system for handling errors.

layer 1. Underlying functions and frameworks used in the CLI (like client, deployer, builder etc.) will return typed errors.
layer 2. CLI will catch these errors and based on the type provided will return a technical error from within those functions and layer another CLI specific error on top for the user.

This way we can systematically have both a valid technical error and user friendly error returned to the user depending on what situation/edge case etc. is hit.

This will require creating more error types in the core of codebase. This should be accessible via all the interfaces used in the CLI so that it is not specific to them. Example: We have multiple builders and we want to have these errors consistent across all. We might have multiple deployers, same deal.

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