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


Froody documentation  | view source Contained in the Froody distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  # from known problems
  my $response = Froody::Response::Error->from_exception($@, $repository)

  print $response->render;

  # or

  $response->throw;

DESCRIPTION

Top

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

ACCESSORS

Top

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

Top

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

Top

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

Top

Froody, Froody::Response


Froody documentation  | view source Contained in the Froody distribution.