XML::Template::Element::Exception - XML::Template plugin module for the exception namespace.
This XML::Template plugin module implements the exception namespace tagset. The exception namespace includes tags that handle exceptions.
XML::Template::Element::Block inherits its constructor method, new, from XML::Template::Element.
new
This method implements the tag throw which throws an exception. The following attributes are used:
throw
The name of the exception to throw.
A description of what caused the exception.
This method implements the beginning of the try structure. The content of this element will be evaluated. If an exception is thrown it can be caught by the child element, catch.
catch
This method implements the catch section of a try structure. If the content of the exception element raises an exception and is caught by this element, the content will be evaluated. The following attributes are used:
exception
The name of the exception to catch.
This method implements the else section of a try structure. If no exception is matched by the catch elements, the content of this element will be evaluated.
Jonathan Waxman <jowaxman@bbl.med.upenn.edu>
Copyright (c) 2002-2003 Jonathan A. Waxman 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 XML::Template, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Template
CPAN shell
perl -MCPAN -e shell install XML::Template
For more information on module installation, please visit the detailed CPAN module installation guide.