HTML::Object::ErrorEvent - HTML Object Error Event Class
use HTML::Object::ErrorEvent; my $event = HTML::Object::ErrorEvent->new( 'WARN' ) || die( HTML::Object::ErrorEvent->error, "\n" );
v0.2.0
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
It inherits its methods from HTML::Object::Exception and implements the additional following ones:
+-------------------------+ +--------------------------+ | HTML::Object::Exception | --> | HTML::Object::ErrorEvent | +-------------------------+ +--------------------------+
This takes a signal, which is case-insensitive and is saved in uppercase, and a list of strings that compose the error message, if any (e.g. for WARN or DIE)
WARN
DIE
The signal that triggered this event object. For example: DIE, WARN, ABRT, INT, TERM
ABRT
INT
TERM
Jacques Deguest <jack@deguest.jp>
HTML::Object::Exception, HTML::Object::DOM::Document
See for more information
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.
To install HTML::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Object
CPAN shell
perl -MCPAN -e shell install HTML::Object
For more information on module installation, please visit the detailed CPAN module installation guide.