NAME

HTML::Object::ErrorEvent - HTML Object Error Event Class

SYNOPSIS

use HTML::Object::ErrorEvent;
my $event = HTML::Object::ErrorEvent->new( 'WARN' ) || 
    die( HTML::Object::ErrorEvent->error, "\n" );

VERSION

v0.2.0

DESCRIPTION

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:

INHERITANCE

+-------------------------+     +--------------------------+
| HTML::Object::Exception | --> | HTML::Object::ErrorEvent |
+-------------------------+     +--------------------------+

CONSTRUCTOR

new

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)

METHODS

signal

The signal that triggered this event object. For example: DIE, WARN, ABRT, INT, TERM

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

HTML::Object::Exception, HTML::Object::DOM::Document

See for more information

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.