HTML::O...estError(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’– 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 (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's perl v5.42.2 dated 2026-02-15. That's the footer tea β€” now go forth and don't nest your html tags, okurrr? πŸ’œβœ¨
πŸ“¦ where this page comes from