Froody::Response::Error - create a response from an error


NAME

Froody::Response::Error - create a response from an error


SYNOPSIS

  # from known problems
  my $response = Froody::Response::Error->from_exception($@, $repository)
  print $response->render;
  # or
  
  $response->throw;
  
  =head1 DESCRIPTION
  

This class is designed to allow you to create error responses quickly and easily.


ACCESSORS

code (read only)
message (read only)
data (read_only)
status (read only)

throw

Throw the response as an the Froody::Error manpage if possible. It may throw undef if no error is associated with the current response.


BUGS

This is missing the argument functionality from the original implementation of Froody::Response.

Please report any bugs you find via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html


AUTHOR

Copyright Fotango 2005. All rights reserved.

Please see the main Froody documentation for details of who has worked on this project.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


SEE ALSO

Froody, the Froody::Response manpage

 Froody::Response::Error - create a response from an error