Froody::ErrorFroody error class. | |
Download |
Froody::Error Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Fotango Ltd
- Publisher web site:
- http://search.cpan.org/~fotango/
Froody::Error Tags
Froody::Error Description
Froody error class. Froody::Error is a Froody error class.SYNOPSIS use Froody::Error qw(err); # throw an error eval { Froody::Error->throw("user.problem", "user '$userid' not known", $data); }; # "user.problem, user '9BC6DD8C-1E25-11DA-98F1-DDB51046DF9C' not known, " print $@->code .", ". $@->msg # and a stacktrace print $@->stacktrace # print the data section print Dumper $@->data; # check if the error is the right class if (err("user")) { ... }Froody::Error is the Froody error class. It's designed to be powerful, yet simple to use. It's a subclass of Error.pm.Often, the easiest way to create an error response from within Froody is to throw a Froody::Error. This will be caught by the server, and it'll be turned into an error response before dispatching it to the client.Standard Froody::Error errors that are thrown by Froody itself indicating that something is wrong with Froody (e.g. you've asked for a method that doesn't exist, or you've ommited a required parameter) are listed in Froody::Error::Standard. Requirements: · Perl
Froody::Error Related Software