txt: ## nodispatcher.md
  class X::NoDispatcher
  
  Error due to calling a dispatch command in an ineligible scope
  
  ```raku
  class X::NoDispatcher is Exception { }
  ```
  
  When a redispatcher like `nextsame` is called without being in the dynamic scope of a call where a redispatch is possible, an X::NoDispatcher is thrown.
  
  For example
  
  ```raku
  nextsame; # In the mainline
  CATCH { default { put .^name, ': ', .Str } };
  # OUTPUT: «X::NoDispatcher: nextsame is not in the dynamic scope of a dispatcher␤»
  ```
  
  # [Methods](#class_X::NoDispatcher "go to top of document")[§](#Methods "direct link")
  
  ## [method redispatcher](#class_X::NoDispatcher "go to top of document")[§](#method_redispatcher "direct link")
  
  ```raku
  method redispatcher(--> Str:D)
  ```
  
  Returns the name of the redispatcher function that did not succeed.
  