NAME
HTML::Object::Exception - HTML Object
SYNOPSIS
use HTML::Object::Exception;
my $this = HTML::Object::Exception->new ||
die( HTML::Object::Exception->error, "\n" );
VERSION
v0.1.0
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"
columnNumber
Returns the column number, which usually returns undef, because this is not set.
fileName
The file name where the error occurred. This is an alias for "file" in Module::Generic::Exception
filename
An alias for "fileName"
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
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
- 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
- HTML::Object::HierarchyRequestError
-
The
HTML::Object::HierarchyRequestErrorobject represents an error when the node tree hierarchy is not correct. - HTML::Object::IndexSizeError
-
The
HTML::Object::IndexSizeErrorobject representations 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::InvalidCharacterErrorobject represents an error when a given named parameter contains one or more characters which are not valid. - HTML::Object::InvalidStateError
-
The
HTML::Object::InvalidStateErrorobject represents an error when there is in an invalid state. - HTML::Object::MediaError
-
The
HTML::Object::MediaErrorobject represents a HTML::Object::DOM::Element::Media error. - HTML::Object::NotFoundError
-
The
HTML::Object::NotFoundErrorobject represents an error when the object cannot be found here. - HTML::Object::SyntaxError
-
The
HTML::Object::SyntaxErrorobject represents an error when trying to interpret syntactically invalid code. - HTML::Object::TypeError
-
The
HTML::Object::TypeErrorobject 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
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 & 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.