Skip to content

Exposing ResponseError data type #34

Description

@onepunchtech

I'm wondering if it would be a good idea to expose the ResponseError constructors to allow users to make smarter decisions about errors.

For example the error type "Neo.ClientError.Schema.ConstraintValidationFailed" can sometimes be used to determine if there should be a user input error vs an internal server error. Similar to 400 vs 500 http error codes.

Or am I missing some other method to be able to distinguish between the error types in the KnownResponseFailure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions