Skip to content

Is it possible to embed information in errors? #572

@hasenj

Description

@hasenj

For example, say I'm parsing something and I hit an unexpected character, so I do something like:

return error.invalidChar;

But I also want the error to carry information about which char was invalid.

Is there a way to do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions