Re:You’re better off using Exceptions
by je42 on Monday February 03, 2020 @02:27PM
(#22227950)
The article is fairly specific:
The first example:
- no stack trace
- loosing the specifics of error to troubleshoot.
The second example:
- explicitly discards the stack trace
- explicitly discards the error specifics.
Hence, if this is really what you want. fine,
but in a lot of cases you do want to see stack traces and the exact reasons (and meta data why an error was thrown).
The first example: - no stack trace - loosing the specifics of error to troubleshoot.
The second example: - explicitly discards the stack trace - explicitly discards the error specifics.
Hence, if this is really what you want. fine, but in a lot of cases you do want to see stack traces and the exact reasons (and meta data why an error was thrown).