HTML::...::Error(3pm)
π 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
- debian trixie: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms