Fotango Ltd

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;
  

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 Froody::Error 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?Queue=Froody

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, Froody::Response