wok view perl-try-tiny/description.txt @ rev 24338
updated avfs (1.1.1 -> 1.1.4)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jan 29 17:06:12 2022 +0100 (2022-01-29) |
parents | |
children |
line source
1 This module provides bare bones try, catch, finally statements that are designed
2 to minimize common mistakes with eval blocks, and NOTHING else.
4 This is unlike TryCatch which provides a nice syntax and avoids adding another
5 call stack layer, and supports calling return from the try block to return from
6 the parent subroutine. These extra features come at a cost of a few dependencies,
7 namely Devel::Declare and Scope::Upper which are occasionally problematic, and
8 the additional catch filtering uses Moose type constraints which may not be
9 desirable either.
11 The main focus of this module is to provide simple and reliable error handling
12 for those having a hard time installing TryCatch, but who still want to write
13 correct eval blocks without 5 lines of boilerplate each time.
15 It's designed to work as correctly as possible in light of the various
16 pathological edge cases and to be compatible with any style of error values
17 (simple strings, references, objects, overloaded objects, etc).