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

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

Serving Software Downloads in 976 Categories, Downloaded 30.157.139 Times

Exception::Base 0.07

  Date Added: November 19, 2010  |  Visits: 576

Exception::Base

Report Broken Link
Printer Friendly Version


Product Homepage
Download (76 downloads)

Exception::Base is a Perl module with lightweight exceptions. SYNOPSIS # Use module and create needed exceptions use Exception::Base ( Exception::IO, Exception::FileNotFound => { message => File not found, isa => Exception::IO }, ); # try / catch try Exception eval { do_something() or throw Exception::FileNotFound message=>Something wrong, tag=>something; }; # Catch the Exception::Base, other exceptions throw immediately if (catch Exception::Base my $e) { # $e is an exception object for sure, no need to check if is blessed if ($e->isa(Exception::IO)) { warn "IO problem"; } elsif ($e->isa(Exception::Die)) { warn "eval died"; } elsif ($e->isa(Exception::Warn)) { warn "some warn was caught"; } elsif ($e->with(tag=>something)) { warn "something happened"; } elsif ($e->with(qr/^Error/)) { warn "some error based on regex"; } else { $e->throw; } # rethrow the exception } # the exception can be thrown later $e = new Exception::Base; $e->throw; # try with array context @v = try Exception::Base [eval { do_something_returning_array(); }]; # use syntactic sugar use Exception::Base qw , Exception::IO; try eval { throw Exception::IO; }; # dont forget about semicolon catch my $e, [Exception::IO]; # Exception::Base is by default This class implements a fully OO exception mechanism similar to Exception::Class or Class::Throwable. It does not depend on other modules like Exception::Class and it is more powerful than Class::Throwable. Also it does not use closures as Error and does not polute namespace as Exception::Class::TryCatch. It is also much faster than Exception::Class..

Requirements: No special requirements
Platforms: Linux
Keyword: Does Not E- Exception Exceptionbase Libraries Module Perl Perl Module Programming Something Warn
Users rating: 0/10

License: Freeware Size: 23.55 KB
EXCEPTION::BASE RELATED
Modules  -  Shutter Reloaded 2.1
The viewer is under 10KB in size and does not require any external libraries.InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Key features "Shutter Reloaded": -...
 
Libraries  -  Proc::Command 0.04
Proc::Command is a backtick that does not use the shell for Perl under Windows. SYNOPSIS use Proc::Command @reponse = Proc::Command->command($command) @reponse = Proc::Command->command($command, $trys) @reponse =...
16.38 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  CGI::Ex::Conf 2.06
CGI::Ex::Conf is a Perl module with Conf Reader/Writer for many different data format types. SYNOPSIS use CGI::Ex::Conf qw(conf_read conf_write); my $hash = conf_read("/tmp/foo.yaml"); conf_write("/tmp/foo.yaml", {key1 => $val1, key2 =>...
215.04 KB  
Libraries  -  PDL::Bad 2.4.3
PDL::Bad - PDL does not process bad values. PDL has been compiled with WITH_BADVAL either 0 or undef, so it does not contain any bad-value support code. Actually, a number of methods are defined, but they are only placeholders to make writing...
2.1 MB  
Libraries  -  B::Lint 1.09
B::Lint module contains Perl lint. SYNOPSIS perl -MO=Lint[,OPTIONS] foo.pl The B::Lint module is equivalent to an extended version of the -w option of perl. It is named after the program lint which carries out a similar process for C...
17.41 KB  
Libraries  -  XML::Grove 0.46 Alpha
XML::Grove is a Perl module with Perl-style XML objects. SYNOPSIS use XML::Grove; # Basic parsing and grove building use XML::Grove::Builder; use XML::Parser::PerlSAX; $grove_builder = XML::Grove::Builder->new; $parser =...
27.65 KB  
Modules  -  User Maintenance 4.7.x-1.x-de
** THIS MODULE DOES NOT ADMINISTER USERS OR CREATE ACCOUNTS **What this module does is - deletes users who meet certain conditions: * never logged in * registered X days ago (configurable) * were not registered by admin, but are "self-registered"...
10 KB  
Network & Internet  -  Bazooka Board 2.75
Bazooka Board is a PHP bulletin board that does not require MySQL. It uses nothing just a single text-file on your web server for its data storage. Bazooka Board was created to help serve those who have PHP webspace, but no MySQL database...
27.65 KB  
E-Mail Tools  -  travmail 0.1.1328
travmail project is an imap webmail client which requires php but does not use the imap routines available in php. Ive just made some rpm files available which have relocation enabled in case you want to install into a path other than the...
19.3 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.2
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB