NAME
CallBackery::Exception - a simple exception class
SYNOPSIS
use CallBackery::Exception qw(mkerror);
eval { die error(22,'Bad Error'); }
if ($@){
print "Code: '.$@->code()." Message: ".$@->message()."\n"
print "$@\n"; #stringified error
}
DESCRIPTION
An error object.
Maybe use Mojo::Exception instead.
- mkerror(code,message)
-
Create an nq::Exception object, setting code and message properties in the process.
- stringify
-
error stringification handler
LICENSE
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
Copyright (c) 2010 by OETIKER+PARTNER AG. All rights reserved.
AUTHOR
Tobias Oetiker <tobi@oetiker.ch>
HISTORY
2010-11-04 to 1.0 first version