Lim::Error - Encapsulate an error within Lim
See Lim for version.
use Lim::Error;
$error = Lim::Error->new('This is a simple error');
Create a new Lim::Error object.
Specify the error code, used in HTTP responses as well as RPC protocols.
Specify the error message.
Specify the module that created this error, if its a blessed object the ref() of that object will be used.
Populate an error object from a hash reference.
Return the code of the error.
Set the error code to $code.
$code
Return the message of the error.
Set the error message to $message
$message
Return the module name of the error.
Set the module name of the error, this can not take blessed objects.
Returns a hash reference describing the error, this is to support passing objects to JSON::XS.
Returns a string that describes the error.
Jerry Lundström, <lundstrom.jerry at gmail.com>
<lundstrom.jerry at gmail.com>
Please report any bugs or feature requests to https://github.com/jelu/lim/issues.
You can find documentation for this module with the perldoc command.
perldoc Lim::Error
You can also look for information at:
Lim issue tracker (report bugs here)
https://github.com/jelu/lim/issues
Copyright 2012-2013 Jerry Lundström.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Lim, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lim
CPAN shell
perl -MCPAN -e shell install Lim
For more information on module installation, please visit the detailed CPAN module installation guide.