Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions need to become localizable #446

Open
lizmat opened this issue Oct 9, 2024 · 1 comment
Open

Exceptions need to become localizable #446

lizmat opened this issue Oct 9, 2024 · 1 comment
Labels
language Changes to the Raku Programming Language

Comments

@lizmat
Copy link
Collaborator

lizmat commented Oct 9, 2024

Inspired by rakudo/rakudo#2669

  • No X::AdHoc (die) errors anymore
  • No string attributes, except for names of methods / variables, etc.
  • Enums for other specific reasons
@lizmat lizmat added the language Changes to the Raku Programming Language label Oct 9, 2024
@alabamenhu
Copy link

alabamenhu commented Oct 14, 2024

Hard agree. Then I can return in earnest to Intl::X which I haven't touched -- wait seriously four years? Yikes.

But as several pointed out in the rakudo thread -- .message really should just be a human readable form. Anything critical metadata should be provided through the error type (e.g. X::Method::NotFound or whatever it is) and its attributes (the method that wasn't found, and the type it was looked up on) to ease processing in a CATCH block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Changes to the Raku Programming Language
Projects
None yet
Development

No branches or pull requests

2 participants