txt: ## controlflow.md
  class X::ControlFlow
  
  Error due to calling a loop control command in an ineligible scope
  
  ```raku
  class X::ControlFlow is Exception { }
  ```
  
  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
  
  ```raku
  last;
  CATCH { default { put .^name, ': ', .Str } };
  # OUTPUT: «X::ControlFlow: last without loop construct␤»
  ```
  
  # [Methods](#class_X::ControlFlow "go to top of document")[§](#Methods "direct link")
  
  ## [method illegal](#class_X::ControlFlow "go to top of document")[§](#method_illegal "direct link")
  
  ```raku
  method illegal returns Str:D
  ```
  
  Returns the name of the control flow command that was called.
  
  ## [method enclosing](#class_X::ControlFlow "go to top of document")[§](#method_enclosing "direct link")
  
  ```raku
  method enclosing returns Str:D
  ```
  
  Returns the name of the missing enclosing construct.
  