Raku / problem-solving

🦋 Problem Solving, a repo for handling problems that require review, deliberation and possibly debate
Artistic License 2.0
70 stars 16 forks source link

Exceptions need to become localizable #446

Open lizmat opened 1 month ago

lizmat commented 1 month ago

Inspired by https://github.com/rakudo/rakudo/issues/2669

alabamenhu commented 1 month ago

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.