in reply to Using die() in methods
My general approach is to die when the error is unlikely to be recoverable from, such as a coding error (i.e. missing or invalid parameters, etc.) and to return undef if it is something like a record does not exist. You can find several examples of this in modules on CPAN.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using die() in methods
by Laurent_R (Canon) on Jul 06, 2014 at 20:27 UTC |