Error::...ameters(3)

πŸ’– Error::...ameters(3) πŸ’–

okay bestie, you found a manpage whose title got cropped to Error::...ameters(3) and honestly? that's giving mystery, that's giving withheld information 🫣 the real name is Error::TypeTiny::WrongNumberOfParameters, and we're about to get into it.


✨ NAME ✨

Error::TypeTiny::WrongNumberOfParameters β€” the exception you get when the count of your params is simply not giving what it was supposed to give πŸ’…


🌸 STATUS 🌸

This module is covered by the Type-Tiny stability policy. no cap, it's official πŸ’œ


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: this thing gets thrown when a Type::Params compiled check gets called with the wrong number of parameters. wrong. number. of. parameters. the audacity 😭

It's also thrown by various parameterizable type constraints under similar circumstances β€” same energy, different location. For example, HashRef[Int] makes sense, but HashRef[Int, {}] does not. like bestie what is that second thing even doing there πŸ™ˆ

This package inherits from Error::TypeTiny; go read that one for most of the documentation. The major differences are listed below πŸ‘‡


πŸ‘‘ Attributes

  • minimum β€” the minimum expected number of parameters. the floor, the bare minimum, the at least πŸŽ€
  • maximum β€” the maximum expected number of parameters. the ceiling, the do not exceed ✨
  • got β€” the number of parameters actually passed to the compiled check. the receipts πŸ“‹
  • target β€” a short string describing what there was the wrong number of parameters for. the who in this whole crime scene πŸ”

πŸŽ€ Methods

  • has_minimum, has_maximum, has_target β€” predicate methods. yes queen, they just tell you whether the thing exists πŸ’«

πŸ’€ BUGS πŸ’€

Please report any bugs to <https://github.com/tobyink/p5-type-tiny/issues>. pls don't suffer in silence bestie, the issue tracker is right there 🫢


🌈 SEE ALSO 🌈

Error::TypeTiny. that's the one. iykyk πŸ’–


⭐ AUTHOR ⭐

Toby Inkster <tobyink@cpan.org>. an icon, a legend, and the moment πŸ™Œ


This software is copyright (c) 2013-2014, 2017-2025 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, free software stays free πŸ’œ


🧚 DISCLAIMER OF WARRANTIES 🧚

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

fr fr, no promises were made. read that in all caps and take it seriously 😭

and that's the whole page, bestie πŸ’… this was perl v5.42.0, dated 2026-01-17, and it goes out as Error::...ameters(3) β€” short title, big personality πŸŽ€βœ¨

πŸ“¦ where this page comes from