Async-Defer
view release on metacpan or search on metacpan
...
);
Add exception handling to this object's program.
In general, try/catch/finally behaviour is same as in Java (and
probably many other languages).
If some STATEMENTS inside try/catch block will throw(), the thrown
error can be intercepted (using matching regexp in catch()) and handled
in any way (blocked - if catch() handler call done(), continue() or
break() or replaced by another exception - if catch() handler call
throw()). If exception match more than one regexp, first successfully
matched regexp's handler will be used. Handler will be executed with
params:
( $defer_object, $error )
In addition to exception handlers you can also define FINALLY handler
(by using string "FINALLY" instead of regex). FINALLY handler will be
called in any case (with/without exception) and may handle this in any
lib/Async/Defer.pm view on Meta::CPAN
...
);
Add exception handling to this object's I<program>.
In general, try/catch/finally behaviour is same as in Java (and probably
many other languages).
If some I<STATEMENTS> inside try/catch block will C<throw()>, the thrown error
can be intercepted (using matching regexp in C<catch()>) and handled in any
way (blocked - if C<catch()> handler call C<done()>, C<continue()> or C<break()> or
replaced by another exception - if C<catch()> handler call C<throw()>).
If exception match more than one regexp, first successfully matched
regexp's handler will be used. Handler will be executed with params:
( $defer_object, $error )
In addition to exception handlers you can also define FINALLY handler
(by using string C<"FINALLY"> instead of regex). FINALLY handler will be
called in any case (with/without exception) and may handle this in any way
just like any other exception handler in C<catch()>. FINALLY handler will
( run in 0.591 second using v1.01-cache-2.11-cpan-49f99fa48dc )