This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Many times one does a catch and just wants to log the error, | |
perhaps with an utility that in the log message includes the function name and the source code line. | |
With catchAndLog one can do the same but with a nicer and shorter syntax. | |
Example, before: | |
do { | |
... code ... | |
} catch { |