method message

Documentation for method message assembled from the following types:

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::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::Take

From CX::Take

(CX::Take) method message

Defined as:

method message()

Returns "<take control exception>".

class CX::Redo

From CX::Redo

(CX::Redo) method message

Defined as:

method message()

Returns "<redo control exception>".

class CX::Emit

From CX::Emit

(CX::Emit) method message

Defined as:

method message()

Returns "<emit control exception>"

class CX::Succeed

From CX::Succeed

(CX::Succeed) method message

Defined as:

method message()

Returns "<next control exception>"

class CX::Return

From CX::Return

(CX::Return) method message

Defined as:

method message()

Returns "<return control exception>"

class CX::Next

From CX::Next

(CX::Next) method message

Defined as:

method message()

Returns "<next control exception>"

class CX::Done

From CX::Done

(CX::Done) method message

Defined as:

method message()

Returns "<done control exception>"

class CX::Proceed

From CX::Proceed

(CX::Proceed) method message

Defined as:

method message()

Returns "<proceed control exception>"