Error::TypeTiny::WrongNumberOfParameters(3pm)

Error::TypeTiny::WrongNumberOfParameters3pm

Exception for type::params

Status

This module is covered by the Type-Tiny stability policy.

Overview

Thrown when a Type::Params compiled check is called with the wrong number of parameters.

Also thrown by various parameterizable type constraints under similar circumstances. For example, the "HashRef[Int]" makes sense, but "HashRef[Int, {}]" does not.

This package inherits from Error::TypeTiny; see that for most documentation. Major differences are listed below:

Attributes

"minimum"

The minimum expected number of parameters.

"maximum"

The maximum expected number of parameters.

"got"

The number of parameters actually passed to the compiled check.

"target"

A short string describing what there was the wrong number of parameters for.

Methods

"has_minimum", "has_maximum", "has_target"

Predicate methods.

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.

Releases

7 releases since Debian 8 (Jessie); the text changed 6 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13
  7. Arch

Bugs

Please report any bugs to <https://github.com/tobyink/p5-type-tiny/issues>.

Author

Toby Inkster <[email protected]>.

From perl-type-tiny 2.010001-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.