CSS::DOM::Exception(3pm) | User Contributed Perl Documentation | CSS::DOM::Exception(3pm) |
CSS::DOM::Exception - The Exception interface for CSS::DOM
use CSS::DOM::Exception 'SYNTAX_ERR'; eval { die new CSS::DOM::Exception SYNTAX_ERR, '1 is not a valid property declaration' }; $@ == SYNTAX_ERR; # true print $@; # prints "1 is not a valid property declaration\n";
This module implementations the W3C's DOMException interface. CSS::DOM::Exception objects stringify to the message passed to the constructer and numify to the error number (see below, under 'EXPORTS').
The following constants are optionally exported. The descriptions are copied from the DOM spec.
CSS::DOM, HTML::DOM::Exception
2023-08-02 | perl v5.36.0 |