message
ErrorsCollection

message

Synthesised documentation from type/Exception type/X/StubCode type/CX/Done type/X/NYI type/CX/Next type/CX/Redo type/X/DateTime/TimezoneClash type/CX/Proceed type/CX/Succeed type/CX/Take type/CX/Last type/CX/Emit type/CX/Return

From type/Exception

See Original text in context

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.␤» 
}

From type/X/StubCode

See Original text in context

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

From type/CX/Done

See Original text in context

method message()

Returns "<done control exception>"

From type/X/NYI

See Original text in context

Returns the message including the above properties.

From type/CX/Next

See Original text in context

method message()

Returns "<next control exception>"

From type/CX/Redo

See Original text in context

method message()

Returns "<redo control exception>".

From type/X/DateTime/TimezoneClash

See Original text in context

method message()

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

From type/CX/Proceed

See Original text in context

method message()

Returns "<proceed control exception>"

From type/CX/Succeed

See Original text in context

method message()

Returns "<next control exception>"

From type/CX/Take

See Original text in context

method message()

Returns "<take control exception>".

From type/CX/Last

See Original text in context

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.

From type/CX/Emit

See Original text in context

method message()

Returns "<emit control exception>"

From type/CX/Return

See Original text in context

method message()

Returns "<return control exception>"