In X::StubCode§

See primary documentation in context for method message

Returns the custom message provided to !!!, or a reasonable default if none was provided.

In role CX::Take§

See primary documentation in context for method message

method message()

Returns '<take control exception>'.

In X::NYI§

See primary documentation in context for method message

Returns the message including the above properties.

In role CX::Done§

See primary documentation in context for method message

method message()

Returns '<done control exception>'.

In role CX::Emit§

See primary documentation in context for method message

method message()

Returns '<emit control exception>'.

In role CX::Last§

See primary documentation in context for method message

method message()

Returns '<last control exception>'. Since this type of exception is to be consumed by type and not really by the content of the message, this is a generic message, similar to all other CX::* exceptions.

In role CX::Proceed§

See primary documentation in context for method message

method message()

Returns '<proceed control exception>'.

In role CX::Return§

See primary documentation in context for method message

method message()

Returns '<return control exception>'.

In X::DateTime::TimezoneClash§

See primary documentation in context for method message

method message()

Returns 'DateTime.new(Str): :timezone argument not allowed with a timestamp offset'

In role CX::Next§

See primary documentation in context for method message

method message()

Returns '<next control exception>'.

In role CX::Redo§

See primary documentation in context for method message

method message()

Returns '<redo control exception>'.

In role CX::Succeed§

See primary documentation in context for method message

method message()

Returns '<next control exception>'.

In Exception§

See primary documentation in context for method message

method message(Exception:D: --> Str:D)

This is a stub that must be overwritten by subclasses, and should return the exception message.

Special care should be taken that this method does not produce an exception itself.

try die "Something bad happened";
if ($!{
    say $!.message# OUTPUT: «Something bad happened.␤» 
}