CallBackery::Exception - a simple exception class
use CallBackery::Exception qw(mkerror); eval { die error(22,'Bad Error'); } if ($@){ print "Code: '.$@->code()." Message: ".$@->message()."\n" print "$@\n"; #stringified error }
An error object.
Maybe use Mojo::Exception instead.
Create an nq::Exception object, setting code and message properties in the process.
error stringification handler
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Copyright (c) 2010 by OETIKER+PARTNER AG. All rights reserved.
Tobias Oetiker <tobi@oetiker.ch>
2010-11-04 to 1.0 first version
To install CallBackery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CallBackery
CPAN shell
perl -MCPAN -e shell install CallBackery
For more information on module installation, please visit the detailed CPAN module installation guide.