Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    POE::Exceptions 0.0502

    Download button

    No screenshots available
    Downloads: 286  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Matt Cashner | More programs
    Perl Artistic License / FREE
    May 24th, 2007, 10:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    POE::Exceptions description

    POE::Exceptions is a POE class for handling exceptions.

    POE::Exceptions is a POE class for handling exceptions.

    SYNOPSIS

    use POE::Exceptions;

    POE::Session::Exception->create(
    inline_states => {
    _start => sub { print 'START';
    $_[KERNEL]->sig('DIE','death_handled');
    },
    death_handled => sub { print 'EXCEPTION CAUGHT'
    $_[KERNEL]->sig_handled();
    },
    _stop => { print 'END' }
    }
    );

    $poe_kernel->run();

    DEPRECATION

    This module is deprecated as its functionality has been rolled into the POE core, as of POE 0.33. This module will receive no updates and will be removed from CPAN at some point in the near future.

    DISCUSSION

    POE::Exceptions extends POE to catch exceptions neatly. A new signal, DIE, is introduced. This signal will be fired every time an exception occurs. (For those of you new to the term exception, an exception is whenever the code decides to bail out by die'ing.) If the signal handler returns 1 (as in the example above), POE will assume that the handler dealt with the signal appropriately. If the signal handler returns 0, POE will assume that the handler does not want to deal with the signal and POE will propgate the exception as if the handler never existed.

    Caveat: POE::Exceptions will die on its own in the case of a double exception fault. If the DIE signal handler itself throws an exception, POE::Exceptions will shut the program down and bail out.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    POE class | handle exceptions | Perl module | POE::Exceptions | POE | class

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM