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 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 Stringy Stringy Blob Blob Blob->Positional Blob->Stringy Uni Uni Uni->Positional Uni->Any Uni->Stringy Cool Cool Cool->Any Range Range Range->Positional Range->Iterable Range->Cool List List List->Positional List->Iterable List->Cool NFKC NFKC NFKC->Uni NFKD NFKD NFKD->Uni NFD NFD NFD->Uni NFC NFC NFC->Uni Slip Slip Slip->List Array Array Array->List Buf Buf Buf->Blob utf8 utf8 utf8->Any utf8->Blob

Expand chart above