Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.136.472 Times

Error::TryCatch 0.07

Company: Nilson Santos Figueiredo J?“N”nior
Date Added: November 24, 2013  |  Visits: 357

Error::TryCatch

Report Broken Link
Printer Friendly Version


Product Homepage
Download (33 downloads)



Error::TryCatch is a Perl module that implements exception handling (try-catch) blocks functionality with an interface similiar to Error.pm (in fact, it's almost a drop-in replacement). The main difference is that it's a source filter module.<br /><br />As a source filter it can implement the same convenient interface without those nasty memory leaks and implicit anonymous subroutines (which can trick you, if you're not careful). Also after source parsing it converts the code into "native" perl code, so it's probably a little faster than Error.pm's approach.<br /><br />And, well. As far as I can tell, Error::TryCatch accomplishes its duty nicely.<br /><br />SYNOPSIS<br /><br /> use Error::TryCatch;<br /> try {<br /> dangerous_code();<br /> even_more_dangerous_code();<br /> throw new Error::Generic<br /> -text => "well, no one can live in danger forever";<br /> }<br /> catch Error::Unhandled with {<br /> # normal die()s are translated into Error::Unhandled exceptions<br /> print "caught an unhandled perl exception: $@n";<br /> }<br /> catch Error::NewExceptionClass with {<br /> # code that handles Error::NewExceptionClass<br /> }<br /> catch Error::YetAnotherExceptions {<br /> # note that 'with' is optional (this differs from Error.pm)<br /> }<br /> otherwise {<br /> # catch any other exception which might not have been caught<br /> my $exception_class = ref($@};<br /> print "someone has thrown a $exception_class exception: $@n";<br /> }<br /> finally {<br /> clean_up(); # which will always be executed<br /> };<br /> # don't forget the trailing ';' otherwise bad things *will* happen

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Catch Error Error Trycatch Errorgeneric Errornewexceptionclass Errorpm Errortrycatch Errorunhandled Exception Exception Class Filter Handles Interface It039s Print Quotcaught Quotwell Source Throw Trycatch Unhandled
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


ERROR::TRYCATCH RELATED
Libraries  -  Exception::Class::TryCatch 1.10
Exception::Class::TryCatch is a syntactic try/catch sugar for use with Exception::Class. SYNOPSIS use Exception::Class::TryCatch; # simple usage of catch() eval { Exception::Class::Base->throw(error) }; catch my $err and warn $err->error;...
15.36 KB  
Libraries  -  Business::GestPayCryptHS 0.41
SYNOPSIS # # Request # use Business::GestPayCryptHS; my $obj = new Business::GestPayCryptHS; $obj->SetShopLogin($ShopLogin); $obj->SetCurrency($Currency); $obj->SetAmount($Amount); $obj->SetShopTransactionID($ShopTransationID);...
7.17 KB  
Libraries  -  Exception::Class 1.23
Exception::Class is a Perl module that allows you to declare real exception classes in Perl. SYNOPSIS use Exception::Class ( MyException, AnotherException => { isa => MyException }, YetAnotherException => { isa => AnotherException,...
16.38 KB  
Libraries  -  Pipeline::Config 0.05
SYNOPSIS use Error qw( :try ); use Pipeline::Config; my $config = Pipeline::Config->new(); try { my $pipe = $config->load( somefile.type ); my $pipe2 = $config->load( somefile, type ); } catch Error with { print shift; }...
7.17 KB  
Libraries  -  Luka 1.08
Luka is an exception handling and reporting framework. SYNOPSIS use Error qw(:try); use Luka; try { $ftp->login("someuser", "somepass") || throw Luka::Exception::External ( error => $ftp->message . $@, id => "login", context => "FTP...
36.86 KB  
Libraries  -  Exception::Class::TCF 0.03
Exception::Class::TCF is a Java/C++ style exception handling. SYNOPSIS try BLOCK [ [catch] NAME FUN_REF ]* throw [ EXCEPTION LIST ] package EnclosureException; @ISA = qw(Exception::Class::TCF); package main; use Exception::Class::TCF;...
11.26 KB  
Development Tools  -  phemplate 1.10.1
phemplate is simple and fast templating engine for php. It provides a way of substituting variables into text templates and do some dynamic block functionality including loops. Templating engines are meant for separation of presentation and logic....
 
Arcade Style Games  -  Heroes 0.21
Heroes project is a Nibbles-like game, just better. Heroes is similar to the "Tron" and "Nibbles" games of yore, but includes many graphical improvements and new game features. In it, you must maneuver a small vehicle around a world and...
 
Libraries  -  Bio::Root::Object 1.4
Bio::Root::Object is a core Perl 5 object. SYNOPSIS # Use this module as the root of your inheritance tree. Object Creation require Bio::Root::Object; $dad = new Bio::Root::Object(); $son = new Bio::Root::Object(-name => Junior, -parent...
4.7 MB  
Utilities  -  Web Interface for SIP Trace 0.4
Web Interface for SIP Trace is a PHP Web Interface that permits you to connect on a remote host/port and listen/filter. Web Interface for SIP Trace was born as a prof concept of the idea to capture SIP traffic from a remote host (SIP Proxy,...
23.55 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB