HTML::O...orEvent(3)
π HTML::Object::ErrorEvent(3) β the HTML::Object::ErrorEvent era π
okay bestie, gather round, because this is the manual page for HTML::Object::ErrorEvent, and it's lowkey iconic β¨
πΈ NAME πΈ
HTML::Object::ErrorEvent β the HTML Object Error Event Class. yes that's the whole name, she's straightforward and we respect that π«Ά
π SYNOPSIS π
like, here's how you actually summon her:
use HTML::Object::ErrorEvent;
my $event = HTML::Object::ErrorEvent->new( 'WARN' ) ||
die( HTML::Object::ErrorEvent->error, "\n" );
not me writing die( ...->error, "\n" ) and feeling like a main character π it's giving responsible error handling, fr fr.
β VERSION β
v0.2.0
she's at v0.2.0, baby steps but make them cute π¦
π DESCRIPTION π
so the HTML::Object::ErrorEvent object represents an error that got triggered and captured by a global error inside the HTML::Object::DOM::Document object. like a little collectible card for every oopsie π
she's the one used by properties like "onabort" in HTML::Object::DOM::Document, or "onerror" in HTML::Object::DOM::Document. iykyk β¨
she inherits her methods from HTML::Object::Exception, and also implements the additional ones listed down below π
π INHERITANCE π
the family tree, no cap:
+-------------------------+ +--------------------------+
| HTML::Object::Exception | --> | HTML::Object::ErrorEvent |
+-------------------------+ +--------------------------+
HTML::Object::Exception is literally the mother, and HTML::Object::ErrorEvent is the daughter who ate π
π§ CONSTRUCTOR π§
β¨ new β¨
this one takes a signal β which is case-insensitive and gets saved in uppercase, okay, she has a dress code β plus a list of strings that compose the error message, if there are any (e.g. for "WARN" or "DIE"). π
so like, WARN goes in, WARN comes out, but warn also goes in and WARN comes out. she's flexible but she has standards π
π₯ METHODS π₯
π signal π
the signal that triggered this event object. examples, because we love a good example:
"DIE""WARN""ABRT""INT""TERM"
that's the whole vibe check: which signal made this event happen. periodt πΈ
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β shoutout to the author, we stan π«Ά
π¦ SEE ALSO π¦
HTML::Object::ExceptionHTML::Object::DOM::Document
and if you want the full lore, see for more information <https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent> π§β¨
π friendly reminder bestie: the link above is exactly where the original points, so go read it, no cap.
π COPYRIGHT & LICENSE π
Copyright(c) 2021 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π (yes, same terms as Perl itself β iconic licensing behaviour, we love to see it π)
π and that's the page!! perl v5.42.2, dated 2026-02-15, served with love and way too much enthusiasm. mwah ππβ¨
π¦ where this page comes from
- alpine 3.24: perl-html-object-doc 0.6.0-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms