Documentation for method message assembled from the following pages:

Class: Exception §

From Exception

(Exception) method message §

Defined as:

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

Class: X::NYI §

From X::NYI

(X::NYI) method message §

Returns the message including the above properties.

Class: X::StubCode §

From X::StubCode

(X::StubCode) method message §

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

Class: CX::Done §

From CX::Done

(CX::Done) method message §

Defined as:

method message()

Returns "<done control exception>"

Class: CX::Emit §

From CX::Emit

(CX::Emit) method message §

Defined as:

method message()

Returns "<emit control exception>"

Class: CX::Last §

From CX::Last

(CX::Last) method message §

Defined as:

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.

Class: CX::Next §

From CX::Next

(CX::Next) method message §

Defined as:

method message()

Returns "<next control exception>"

Class: CX::Proceed §

From CX::Proceed

(CX::Proceed) method message §

Defined as:

method message()

Returns "<proceed control exception>"

Class: CX::Redo §

From CX::Redo

(CX::Redo) method message §

Defined as:

method message()

Returns "<redo control exception>".

Class: CX::Return §

From CX::Return

(CX::Return) method message §

Defined as:

method message()

Returns "<return control exception>"

Class: CX::Succeed §

From CX::Succeed

(CX::Succeed) method message §

Defined as:

method message()

Returns "<next control exception>"

Class: CX::Take §

From CX::Take

(CX::Take) method message §

Defined as:

method message()

Returns "<take control exception>".