Error::Hierarchy::Mixin - provides often-used exception-related methods
package MyClass; use Error::Hierarchy::Mixin; Some::Exception->throw(...);
This mixin provides several methods that you will often use when dealing with exceptions.
It also overrides CORE::GLOBAL::die() so die() will produce an Error::Hierarchy::Internal::CustomMessage. If you have to use the original die(), use CORE::die() instead.
CORE::GLOBAL::die()
die()
CORE::die()
Takes an exception class name (a string) and a hash of arguments. Loads the exception class, constructs an exception object, passes it the argumments and throws it by calling the exception object's throw() method. It populates the UNIVERSAL namespace, so all packages get this ability.
throw()
Like throw(), but records the exception using the exception object's record() method.
record()
If you talk about this module in blogs, on del.icio.us or anywhere else, please use the errorhierarchy tag.
errorhierarchy
No bugs have been reported.
Please report any bugs or feature requests to bug-error-hierarchy@rt.cpan.org, or through the web interface at http://rt.cpan.org.
bug-error-hierarchy@rt.cpan.org
See perlmodinstall for information and options on installing Perl modules.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.
Marcel Grünauer, <marcel@cpan.org>
<marcel@cpan.org>
Copyright 2007 by Marcel Grünauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Error::Hierarchy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Error::Hierarchy
CPAN shell
perl -MCPAN -e shell install Error::Hierarchy
For more information on module installation, please visit the detailed CPAN module installation guide.