Skip to content

Rethink Failure from @perfective/common/error #44

@amikheychik

Description

@amikheychik

The purpose of the Failure is to represent an Error or an Exception as plain object for easy conversion to JSON.

The Exception class can simply implement the toJSON() method for JSON conversions. But it's not possible for built-in errors.

I wonder if some workaround is possible, so the Failure type can be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    package:errorIssues for the @perfective/common/error package

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions