Skip to content

Allow additional enumerable properties for errors #47

Description

@alexburley

Sometimes we want to return additional payload as JSON to error but at the moment we can not.

Basically we should allow saying: throw new UserInputError({ message: 'some error', payload: { foo: 'bar' })
is equivalent to throw new Error({ code: '#user_input_error, message: 'some error', payload: { foo: 'bar' })

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