# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #126717]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126717 >


<masak> m: class X::Test is Exception { method message { $.x } }; die
X::Test.new
<camelia> rakudo-moar : OUTPUT«X::Test exception produced no message [...]
<masak> ^^ is a bit suboptimal
<masak> if the message method fails for whatever reason, the exception
"produced no message"

It's technically correct that X::Test produced no message. But it
would be even better if the exception that occurs inside of .message
were thrown in some fashion:

<masak> m: class X::Test is Exception { method message { $.x } };
X::Test.new.message
<camelia> rakudo-moar : OUTPUT«Method 'x' not found for invocant of
class 'X::Test' [...]

If we can use our nested exceptions mechanism here somehow, so much
the better. As long as we throw the exception from .message in one way
or another.

Reply via email to