NAME
Error::Hierarchy::Mixin - Provides often-used exception-related methods
VERSION
version 1.103530
SYNOPSIS
package MyClass;
use Error::Hierarchy::Mixin;
Some::Exception->throw(foo => 'bar');
DESCRIPTION
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.
METHODS
throw
Takes an exception class name (a string) and a hash of arguments. Loads the exception class, constructs an exception object, passes it the arguments and throws it by calling the exception object's throw()
method. It populates the UNIVERSAL namespace, so all packages get this ability.
record
Like throw()
, but records the exception using the exception object's record()
method.
INSTALLATION
See perlmodinstall for information and options on installing Perl modules.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Error-Hierarchy.
AVAILABILITY
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://search.cpan.org/dist/Error-Hierarchy/.
The development version lives at http://github.com/hanekomu/Error-Hierarchy and may be cloned from git://github.com/hanekomu/Error-Hierarchy. Instead of sending patches, please fork this project using the standard git and github infrastructure.
AUTHOR
Marcel Gruenauer <marcel@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2004 by Marcel Gruenauer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.