txt: ## positional.md
  class X::Constructor::Positional
  
  Error due to passing positional arguments to a default constructor
  
  ```raku
  class X::Constructor::Positional is Exception { }
  ```
  
  Thrown from [Mu.new](/type/Mu#method_new) when positional arguments are passed to it.
  
  For example
  
  ```raku
  class A { };
  A.new(2, 3);
  CATCH { default { put .^name, ': ', .Str } };
  # OUTPUT: «X::Constructor::Positional: Default constructor for 'A' only takes named arguments␤»
  ```
  
  # [Typegraph](# "go to top of document")[§](#typegraphrelations "direct link")
  
  Type relations for `X::Constructor::Positional`
  
  
  
  raku-type-graph
  
  
  
  Positional
  Positional
  
  
  Stringy
  Stringy
  
  
  Blob
  Blob
  
  
  Blob->Positional
  
  
  
  Blob->Stringy
  
  
  
  Mu
  Mu
  
  
  Any
  Any
  
  
  Any->Mu
  
  
  
  Cool
  Cool
  
  
  Cool->Any
  
  
  
  Iterable
  Iterable
  
  
  Range
  Range
  
  
  Range->Positional
  
  
  
  Range->Cool
  
  
  
  Range->Iterable
  
  
  
  List
  List
  
  
  List->Positional
  
  
  
  List->Cool
  
  
  
  List->Iterable
  
  
  
  Associative
  Associative
  
  
  IO::Path::Parts
  IO::Path::Parts
  
  
  IO::Path::Parts->Positional
  
  
  
  IO::Path::Parts->Any
  
  
  
  IO::Path::Parts->Iterable
  
  
  
  IO::Path::Parts->Associative
  
  
  
  Uni
  Uni
  
  
  Uni->Positional
  
  
  
  Uni->Stringy
  
  
  
  Uni->Any
  
  
  
  Array
  Array
  
  
  Array->List
  
  
  
  Slip
  Slip
  
  
  Slip->List
  
  
  
  NFKC
  NFKC
  
  
  NFKC->Uni
  
  
  
  NFD
  NFD
  
  
  NFD->Uni
  
  
  
  NFC
  NFC
  
  
  NFC->Uni
  
  
  
  NFKD
  NFKD
  
  
  NFKD->Uni
  
  
  
  Buf
  Buf
  
  
  Buf->Blob
  
  
  
  utf8
  utf8
  
  
  utf8->Blob
  
  
  
  utf8->Any
  
  [Expand chart above](/assets/typegraphs/Positional.svg)
  