MooseX::ErrorHandling - Monkey Patch Moose's Errors
version 0.2
whenMooseThrows CanOnlyConsumeRole => insteadDo { My::Exception->new( error => $_->message ); };
This module is an attempt to monkey patch the way Moose handles errors. Currently Moose throws a number of different exception objects for different errors. If you're trying to replace an existing object system with Moose, suddenly your errors could be very different.
This module is almost certainly a bad idea, and I'm fairly sure I'm going to regret putting it on cpan.
Figure out a sane way to do this.
Chris Reinhardt crein@cpan.org
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Moose, perl(1)
To install MooseX::ErrorHandling, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::ErrorHandling
CPAN shell
perl -MCPAN -e shell install MooseX::ErrorHandling
For more information on module installation, please visit the detailed CPAN module installation guide.