class X::ControlFlow::Return is X::ControlFlow { }

Thrown when a return is called from outside a routine.

return;
CATCH { default { put .^name''.Str } };
# OUTPUT: «X::ControlFlow::Return: Attempt to return outside of any Routine␤»

Typegraph§

Type relations for X::ControlFlow::Return
raku-type-graph X::ControlFlow::Return X::ControlFlow::Return X::ControlFlow X::ControlFlow X::ControlFlow::Return->X::ControlFlow Mu Mu Any Any Any->Mu Exception Exception Exception->Any X::ControlFlow->Exception

Expand chart above