class X::Constructor::Positional is Exception { }

Thrown from Mu.new when positional arguments are passed to it.

For example

class A { };
A.new(23);
CATCH { default { put .^name''.Str } };
# OUTPUT: «X::Constructor::Positional: Default constructor for 'A' only takes named arguments␤»

Typegraph§

Type relations for X::Constructor::Positional
raku-type-graph Positional Positional Mu Mu Any Any Any->Mu Stringy Stringy Uni Uni Uni->Positional Uni->Any Uni->Stringy Associative Associative Iterable Iterable IO::Path::Parts IO::Path::Parts IO::Path::Parts->Positional IO::Path::Parts->Any IO::Path::Parts->Associative IO::Path::Parts->Iterable Cool Cool Cool->Any List List List->Positional List->Iterable List->Cool Blob Blob Blob->Positional Blob->Stringy Range Range Range->Positional Range->Iterable Range->Cool NFKD NFKD NFKD->Uni NFC NFC NFC->Uni NFD NFD NFD->Uni NFKC NFKC NFKC->Uni Array Array Array->List Slip Slip Slip->List utf8 utf8 utf8->Any utf8->Blob Buf Buf Buf->Blob

Expand chart above