HTML::O...xception(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’– NAME πŸ’–

okay so welcome to the HTML::O...xception(3) page β€” yep, the header is doing its little truncation thing, but the manual name is HTML::Object::Exception(3), filed under User Contributed Perl Documentation. This class is HTML::Object::Exception β€” HTML Object β€” and it is literally serving exception-class realness. No cap. ✨


πŸŽ€ SYNOPSIS πŸŽ€

use HTML::Object::Exception;
my $this = HTML::Object::Exception->new ||
    die( HTML::Object::Exception->error, "\n" );

✨ VERSION ✨

v0.2.0 β€” short, sweet, iconic. πŸ’…


🌸 DESCRIPTION 🌸

This class inherits all its features and methods from Module::Generic::Exception, and implements the following additional methods:


πŸ’… METHODS πŸ’…

colno

An alias for columnNumber. Slay.

columnNumber

Returns the column number, which usually returns undef, because this is not set. It's giving "not today, column info." 😭

fileName

The file name where the error occurred. This is an alias for file in Module::Generic::Exception.

filename

An alias for fileName. Cute little name twins. 🫢

lineno / lineNumber

The line number where the error occurred. This is an alias for line in Module::Generic::Exception.

name

Returns the class name. For example: HTML::Object::Exception. Main character energy, honestly. πŸ‘‘

stack

Returns the stack trace object. This is an alias for trace in Module::Generic::Exception.

toLocalString

This is an alias for as_string in Module::Generic::Exception.

toString

This is an alias for as_string in Module::Generic::Exception.


πŸ¦‹ OTHER EXCEPTION CLASSES πŸ¦‹

This module also implements the following exception classes used predominantly by HTML::Object::DOM. Bestie, we are spoiled with exception options. πŸ’–

HTML::Object::ErrorEvent

The HTML::Object::ErrorEvent object represents an error triggered and captured by a global error in the HTML::Object::DOM::Document object.

It is used by properties like onabort in HTML::Object::DOM::Document or onerror in HTML::Object::DOM::Document.

See for more information: https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent

HTML::Object::HierarchyRequestError

The HTML::Object::HierarchyRequestError object represents an error when the node tree hierarchy is not correct.

HTML::Object::IndexSizeError

The HTML::Object::IndexSizeError object represents an error that occurs when an index is not in the allowed range.

For example, in substringData in HTML::Object::DOM::CharacterData.

HTML::Object::InvalidCharacterError

The HTML::Object::InvalidCharacterError object represents an error when a given named parameter contains one or more characters which are not valid.

HTML::Object::InvalidStateError

The HTML::Object::InvalidStateError object represents an error when something is in an invalid state.

HTML::Object::MediaError

The HTML::Object::MediaError object represents a HTML::Object::DOM::Element::Media error.

HTML::Object::NotFoundError

The HTML::Object::NotFoundError object represents an error when the object cannot be found here.

HTML::Object::SyntaxError

The HTML::Object::SyntaxError object represents an error when trying to interpret syntactically invalid code.

HTML::Object::TypeError

The HTML::Object::TypeError object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type.


πŸ‘‘ AUTHOR πŸ‘‘

Jacques Deguest <jack@deguest.jp>


πŸ”— SEE ALSO πŸ”—

HTML::Object::HierarchyRequestError, Module::Generic::Exception, "error" in Module::Generic

Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/DOMException

HTML::Object, HTML::Object::Attribute, HTML::Object::Boolean, HTML::Object::Closing, HTML::Object::Collection, HTML::Object::Comment, HTML::Object::Declaration, HTML::Object::Document, HTML::Object::Element, HTML::Object::Exception, HTML::Object::Literal, HTML::Object::Number, HTML::Object::Root, HTML::Object::Space, HTML::Object::Text, HTML::Object::XQuery


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.


okay bye bestie, that's the whole manual πŸ’– footer check: perl v5.42.2, dated 2026-02-15, on HTML::O...xception(3) β€” mwah, stay exceptional. πŸŽ€βœ¨

πŸ“¦ where this page comes from