Fatal::Exception 0.01
Sponsored Links
Fatal::Exception 0.01 Ranking & Summary
File size:
0.008 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
885
Date added:
2007-05-23
Publisher:
Piotr Roszatycki
Fatal::Exception 0.01 description
Fatal::Exception - succeed or throw exception.
SYNOPSIS
use Fatal::Exception Exception::System => qw
;
open FILE, "/nonexistent"; # throw Exception::System
use Exception::Base Exception::My;
sub juggle { ... }
import Fatal::Exception Exception::My => juggle;
juggle; # succeed or throw exception
unimport Fatal::Exception juggle;
juggle or die; # restore original behavior
Fatal::Exception provides a way to conveniently replace functions which normally return a false value when they fail with equivalents which raise exceptions if they are not successful. This is the same as Fatal module but it throws Exception::Base object on error.
IMPORTS
use Fatal::Exception Exception => function, function, ...
Replaces the original functions with wrappers which provide do-or-throw equivalents. You may wrap both user-defined functions and overridable CORE operators (except exec, system which cannot be expressed via prototypes) in this way.
If the symbol :void appears in the import list, then functions named later in that import list raise an exception only when these are called in void context.
You should not fatalize functions that are called in list context, because this module tests whether a function has failed by testing the boolean truth of its return value in scalar context.
If the exception class is not exist, its module is loaded with "use Exception" automatically.
unimport Fatal::Exception function, function, ...
Restores original functions for user-defined functions or replaces the functions with do-without-die wrappers for CORE operators.
In fact, the CORE operators cannot be restored, so the non-fatalized alternative is provided instead.
The functions can be wrapped and un-wrapped all the time.
SYNOPSIS
use Fatal::Exception Exception::System => qw
open FILE, "/nonexistent"; # throw Exception::System
use Exception::Base Exception::My;
sub juggle { ... }
import Fatal::Exception Exception::My => juggle;
juggle; # succeed or throw exception
unimport Fatal::Exception juggle;
juggle or die; # restore original behavior
Fatal::Exception provides a way to conveniently replace functions which normally return a false value when they fail with equivalents which raise exceptions if they are not successful. This is the same as Fatal module but it throws Exception::Base object on error.
IMPORTS
use Fatal::Exception Exception => function, function, ...
Replaces the original functions with wrappers which provide do-or-throw equivalents. You may wrap both user-defined functions and overridable CORE operators (except exec, system which cannot be expressed via prototypes) in this way.
If the symbol :void appears in the import list, then functions named later in that import list raise an exception only when these are called in void context.
You should not fatalize functions that are called in list context, because this module tests whether a function has failed by testing the boolean truth of its return value in scalar context.
If the exception class is not exist, its module is loaded with "use Exception" automatically.
unimport Fatal::Exception function, function, ...
Restores original functions for user-defined functions or replaces the functions with do-without-die wrappers for CORE operators.
In fact, the CORE operators cannot be restored, so the non-fatalized alternative is provided instead.
The functions can be wrapped and un-wrapped all the time.
Fatal::Exception 0.01 Screenshot
Fatal::Exception 0.01 Keywords
Exception 0.01
CORE
Exception Exception
exception
functions
throw
succeed
juggle
function
Fatal::Exception
FatalException
Fatal::Exception 0.01
Libraries
Programming
Bookmark Fatal::Exception 0.01
Fatal::Exception 0.01 Copyright
WareSeeker periodically updates pricing and software information of Fatal::Exception 0.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Fatal::Exception 0.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
trigonometric functions
functions of the liver
functions of management
functions math
what are the functions of the liver
quadratic functions
exception has been thrown by the target of an invocation
exception processing message
functions of the heart
functions of money
exceptional customer service
pinnacle golf balls exception clearance
council for exceptional children
exceptional innovation
functions of the skin
exceptional
machine check exception error code 0000009c
functions of public relations
Related Software
Java::JCR::Exception is a Perl wrapper for repository exceptions. Free Download
Exception::Base is a Perl module with lightweight exceptions. Free Download
Test::Exception is a Perl module to test exception based code. Free Download
Exception::System is the exception class for system or library calls. Free Download
Lexi project is a dict client and vocabulary builder. Free Download
cexcept (pronounced see except in English) is a package providing a Try/Catch/Throw exception handling interface for ANSI C. Free Download
Crystal Core is the main Crystal Space demo game. Free Download
Exception::Class::TCF is a Java/C++ style exception handling. Free Download
Latest Software
Popular Software
Favourite Software