Re: [RFC PATCH 0/2] gitweb: die_error (error handling) improvements
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 13, 2010, 09:46 UTC
- Message-ID
- <201012131046.38725.jnareb@gmail.com>
- In-Reply-To
- <201012130855.23013.jnareb@gmail.com>
On Mon, 13 Dec 2010, Jakub Narebski wrote:
> Nevertheless I'll take a look how it is solved in other web applications > written in Perl, like SVN::Web or CPAN Hubble.
SVN::Web uses eval / die... well, it uses SVN::Web::X->throw() instead of "die" for error handling (SVN::Web::X is based on Exception::Class; other class to use for exceprion handling is Throwable but it requires Moose). For errors early in the process it just uses "die".
-- Jakub Narebski Poland