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

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

For example

class A { };
A.new(2, 3);
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 Cool Cool Cool->Any Iterable Iterable List List List->Positional List->Cool List->Iterable Stringy Stringy Uni Uni Uni->Positional Uni->Any Uni->Stringy Range Range Range->Positional Range->Cool Range->Iterable Blob Blob Blob->Positional Blob->Stringy Associative Associative IO::Path::Parts IO::Path::Parts IO::Path::Parts->Positional IO::Path::Parts->Any IO::Path::Parts->Iterable IO::Path::Parts->Associative Slip Slip Slip->List Array Array Array->List NFKD NFKD NFKD->Uni NFKC NFKC NFKC->Uni NFC NFC NFC->Uni NFD NFD NFD->Uni Buf Buf Buf->Blob utf8 utf8 utf8->Any utf8->Blob

Expand chart above