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 123;

dies with

Missing block

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


method what§

method what(--> Str:D)

Returns a string description of the missing syntax element.


Type relations for X::Syntax::Missing
raku-type-graph X::Syntax::Missing X::Syntax::Missing Exception Exception X::Syntax::Missing->Exception X::Syntax X::Syntax X::Syntax::Missing->X::Syntax Mu Mu Any Any Any->Mu Exception->Any X::Comp X::Comp X::Comp->Exception X::Syntax->Exception X::Syntax->X::Comp

Expand chart above