Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37044259
en ru br
ALT Linux repositórios
S:1.13-alt1
5.0: 1.10-alt1.1

Group :: Desenvolvimento/Perl
RPM: perl-Exception-Class-TryCatch

 Principal   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

A versão atual: 1.13-alt1
Data da compilação: 5 março 2014, 20:38 ( 525.2 weeks ago )
Tamanho:: 25.84 Kb

Home page:   http://search.cpan.org/dist/Exception-Class-Try…

Licença: Artistic
Sumário: Exception::Class::TryCatch - Syntactic try/catch sugar for use with Exception::Class
Descrição:

Exception::Class::TryCatch provides syntactic sugar for use with
Exception::Class using the familiar keywords try and catch. Its primary
objective is to allow users to avoid dealing directly with $@ by ensuring that
any exceptions caught in an eval are captured as Exception::Class objects,
whether they were thrown objects to begin with or whether the error resulted
from die. This means that users may immediately use isa and various
Exception::Class methods to process the exception.

In addition, this module provides for a method to push errors onto a hidden
error stack immediately after an eval so that cleanup code or other error
handling may also call eval without the original error in $@ being lost.

Inspiration for this module is due in part to Dave Rolsky's article "Exception
Handling in Perl With Exception::Class" in The Perl Journal (Rolsky 2004).

The try/catch syntax used in this module does not use code reference prototypes
the way the Error.pm module does, but simply provides some helpful
functionality when used in combination with eval. As a result, it avoids the
complexity and dangers involving nested closures and memory leaks inherent in
Error.pm (Perrin 2003).

Rolsky (2004) notes that these memory leaks may not occur in recent versions of
Perl, but the approach used in Exception::Class::TryCatch should be safe for
all versions of Perl as it leaves all code execution to the eval in the current
scope, avoiding closures altogether.

Mantenedor currente: Michael Bochkaryov

Lista dos contribuidores

Lista dos rpms provida por esta srpm:

  • perl-Exception-Class-TryCatch
ACL:
     
    projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
    mantenedor atual: Michael Shigorin
    mantenedor da tradução: Fernando Martini aka fmartini © 2009