Params:...eptions(3)

πŸ¦‹ NAME πŸ¦‹

okay bestie, welcome to the manual page for Params::ValidationCompiler::Exceptions(3) β€” a User Contributed Perl Documentation page, and its whole job is literally defining the exceptions thrown by Params::ValidationCompiler. periodt πŸ’…

🌸 VERSION 🌸

version 0.31 ✨

πŸ’– DESCRIPTION πŸ’–

no cap, this module defines the following exceptions. they are all giving β€œyour arguments did not pass the vibe check,” and here’s the exact lineup:

🫢 Params::ValidationCompiler::Exception::BadArguments

Exception thrown when @_ does not contain a hash or hashref. not a hash, not a hashref, not invited to the function πŸ’€

🫢 Params::ValidationCompiler::Exception::Named::Extra

Exception thrown when @_ contains unexpected extra named arguments. bestie brought plus-ones to the named-arguments party and they were not on the list πŸ™ˆ

🫢 Params::ValidationCompiler::Exception::Named::Required

Exception thrown when a required named parameter is not passed. the required named parameter did not show up, and the group chat is in shambles 😭

🫢 Params::ValidationCompiler::Exception::Positional::Extra

Exception thrown when @_ contains unexpected extra arguments. extra positional arguments pulled up uninvited 🚨

🫢 Params::ValidationCompiler::Exception::Positional::Required

Exception thrown when a required positional parameter is not passed. the required positional parameter ghosted, and that is not slay πŸ’”

πŸ‘‘ Params::ValidationCompiler::Exception::ValidationFailedForMooseTypeConstraint

Exception thrown when a Moose type constraint check fails. this class provides the following methods, and they are here to explain the academic weaponry of type-check rejection πŸŽ€

  • $e->parameter β€” this returns a string describing the parameter, something like "The 'foo' parameter" or "Parameter #1".
  • $e->value β€” this is the value that failed the type constraint check. yes, that exact little value. caught in 4K πŸ“Έ
  • $e->type β€” this is the type constraint object that did not accept the value. iconic boundary-setting behavior, honestly ✨

🌈 SUPPORT 🌈

Bugs may be submitted at <https://github.com/houseabsolute/Params-ValidationCompiler/issues>. if something is acting sus, that’s the place to report it 🫢

🧚 SOURCE 🧚

The source code repository for Params-ValidationCompiler can be found at <https://github.com/houseabsolute/Params-ValidationCompiler>. go look, bestie, the receipts are right there πŸ”₯

⭐ AUTHOR ⭐

Dave Rolsky <autarch@urth.org> β€” main character energy πŸ‘‘

This software is Copyright (c) 2016 - 2023 by Dave Rolsky.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

The full text of the license can be found in the LICENSE file included with this distribution. read it, bestie, it’s giving legal lore πŸ“œπŸ’œ


mwah πŸ’‹ this page is from perl v5.42.0, dated 2023-02-14, and it’s the Params::ValidationCompiler::Exceptions(3) manpage. byeee πŸŽ€βœ¨

πŸ“¦ where this page comes from