perl6/doc/lib/X/Syntax/Missing

doc src
(title) class X::Syntax::Missing
    class X::Syntax::Missing does X::Syntax { }

 
Syntax error thrown when the previous piece of syntax requires the existence of another piece of syntax, and that second piece is missing. For example
    for 1, 2, 3

 
dies with
    ===SORRY!===
    Missing block

 
because a for that is not a statement modifier must be followed by a block.

Methods

(head2) what
    method what() returns Str:D

 
Returns a string description of the missing syntax element.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: