HTML::O...estError(3)
π NAME π
HTML::Object::HierarchyRequestError β aka the HTML Hierarchy Exception, bestie. It's the error that shows up when your HTML hierarchy is doing too much and the rules say "girl, no." π«Ά
This page is HTML::O...estError(3) from the User Contributed Perl Documentation β the manual name is lowkey truncated in the header (iykyk), but that's the one you're reading right now. β¨
πΈ SYNOPSIS πΈ
use HTML::Object
my $parser = HTML::Object->new || die( HTML::Object->error, "\n" );
my $doc = $parser->parse_file( $some_file ) || die( $parser->error );
my $elem = $parser->new_element( tag => 'html' );
$doc->append( $elem ) || die( $doc->error );
# This would die with an HTML::Object::HierarchyRequestError exception object
# because there cannot be 2 html tags
exit(0);
Not me pointing at the comments like, yes, read them, they're the whole plot π β that $doc->append( $elem ) call dies with an HTML::Object::HierarchyRequestError exception object, because fr fr there cannot be 2 html tags. Two html tags is not the vibe. π
β VERSION β
v0.1.0
π¦ DESCRIPTION π¦
Okay so this exception class is a nepo baby in the best way β it inherits all its features from HTML::Object::Exception. That's it, that's the whole personality. She's giving "I got everything from my parent class" and honestly? Slay. π
π METHODS π
See HTML::Object::Exception. That's the lore. Go read the parent's page, bestie, it's all there. π
π AUTHOR π
Jacques Deguest <jack@deguest.jp>
π₯ SEE ALSO π₯
HTML::Object::Exceptionβ the parent class with all the actual features, main character energy fr fr
π 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. π§
Real talk though: this page is part of the User Contributed Perl Documentation, and it'sperl v5.42.2dated2026-02-15. That's the footer tea β now go forth and don't nest yourhtmltags, okurrr? πβ¨
π¦ 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