class X::Syntax::Malformed does X::Syntax {}

The Raku compiler throws errors of type X::Syntax::Malformed when it knows what kind of declaration it is parsing, and encounters a syntax error, but can't give a more specific error message.

my Int a;   # throws an X::Syntax::Malformed 


Malformed my
at -e:1
------> my Int ⏏a


method what§

method what(X::Syntax::Malformed:D: --> Str)

Returns a description of the thing that was being parsed.


Type relations for X::Syntax::Malformed
raku-type-graph X::Syntax::Malformed X::Syntax::Malformed Exception Exception X::Syntax::Malformed->Exception X::Syntax X::Syntax X::Syntax::Malformed->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