wok
annotate perl-try-tiny/description.txt @ rev 24765
afpfs-ng,btfs,curlftpfs,ddumbfs,djmount,encfs,exfat-utils,fusecloop,fusedav,fuseiso,httpfs2-fuse: try fuse2
author |
Pascal Bellard <pascal.bellard@slitaz.org> |
date |
Fri Mar 18 17:45:47 2022 +0000 (2022-03-18) |
parents |
|
children |
|
rev |
line source |
Hans-G?nter@24265
|
1 This module provides bare bones try, catch, finally statements that are designed
|
Hans-G?nter@24265
|
2 to minimize common mistakes with eval blocks, and NOTHING else.
|
Hans-G?nter@24265
|
3
|
Hans-G?nter@24265
|
4 This is unlike TryCatch which provides a nice syntax and avoids adding another
|
Hans-G?nter@24265
|
5 call stack layer, and supports calling return from the try block to return from
|
Hans-G?nter@24265
|
6 the parent subroutine. These extra features come at a cost of a few dependencies,
|
Hans-G?nter@24265
|
7 namely Devel::Declare and Scope::Upper which are occasionally problematic, and
|
Hans-G?nter@24265
|
8 the additional catch filtering uses Moose type constraints which may not be
|
Hans-G?nter@24265
|
9 desirable either.
|
Hans-G?nter@24265
|
10
|
Hans-G?nter@24265
|
11 The main focus of this module is to provide simple and reliable error handling
|
Hans-G?nter@24265
|
12 for those having a hard time installing TryCatch, but who still want to write
|
Hans-G?nter@24265
|
13 correct eval blocks without 5 lines of boilerplate each time.
|
Hans-G?nter@24265
|
14
|
Hans-G?nter@24265
|
15 It's designed to work as correctly as possible in light of the various
|
Hans-G?nter@24265
|
16 pathological edge cases and to be compatible with any style of error values
|
Hans-G?nter@24265
|
17 (simple strings, references, objects, overloaded objects, etc).
|