BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2019-08-04

class X::ControlFlow

Error due to calling a loop control command in an ineligible scope

class X::ControlFlow is Exception { }
Code

Thrown when a control flow construct (such as next or redo) is called outside the dynamic scope of an enclosing construct that is supposed to catch them.

For example

last;
CATCH { default { put .^name, ': ', .Str } };
# OUTPUT: «X::ControlFlow: last without loop construct␤»
Code

Methods§

method illegal§

method illegal returns Str:D
Code

Returns the name of the control flow command that was called.

method enclosing§

method enclosing returns Str:D
Code

Returns the name of the missing enclosing construct.