Help for this page

Select Code to Download


  1. or download this
    eval {
        &something_that_throws_exceptions
    ...
    if ( $@ ) {
        &exception_handler
    }
    
  2. or download this
    use Exception::Class::TCF;
    try {
        &something_that_throws_exceptions
    } catch 'Default' => \&exception_handler;