HTML::O...orEvent(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’– 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::Exception
  • HTML::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(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