HTML::...::Error(3pm)

πŸ“¦
version 1.11 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– HTML::...::Error β€” bestie edition πŸ’–

okay so this is HTML::Widget::Error, which lives in the Perl docs under 3pm (User Contributed Perl Documentation, if you were wondering 🫢). she's a little error object and she's literally just here to hold your error info. iconic of her.


✨ NAME ✨

HTML::Widget::Error β€” Error πŸ’…


🌸 SYNOPSIS 🌸

my @errors = $form->errors('foo');
for my $error (@errors) {
    print $error->type;
    print $error->message;
}

no cap, that's the whole vibe. you grab your errors off the form, then you loop through them and ask each one what her type is and what her message is. πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

Error. that's it. that's the description. she's mysterious, she's minimal, she's giving main character energy with zero explanation. 😭


πŸ‘‘ METHODS πŸ‘‘

name

  • Arguments: $name
  • Return Value: $name

you give her a name, she gives it right back. mutual. πŸŽ€

message

  • Arguments: $message
  • Return Value: $message

same deal but for the message. you put the words in, the words come out. periodt. πŸ’œ

no_render

  • Arguments: $bool

if this is true, this error will not be displayed by $result->as_xml. she's hiding. she's in her off-the-grid era. πŸ™ˆ

this is used internally by render_errors in HTML::Widget::Constraint. iykyk β€” that's not your business, that's their business. πŸ’…

type

  • Arguments: $type
  • Return Value: $type

set the type, get the type. slay. ✨


🌈 AUTHOR 🌈

Sebastian Riedel, sri@oook.de β€” respect the legend, fr fr. 🫢


πŸŽ€ LICENSE πŸŽ€

this library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. go forth, remix, be free. πŸ¦‹


okay bestie that's the whole page πŸ’– this was documented for perl v5.36.0 and dated 2023-08-10 β€” so yeah, she's got a few years on her but she still ate and left no crumbs. go build something cute with her! πŸŒΈβ­πŸ“

πŸ“¦ where this page comes from