3 ms·
Doesn’t wrapping usually mean adding (semantic) information without changing the original?
by asplake 7y ago
Doesn’t wrapping usually mean adding (semantic) information without changing the original?
- wvenable 7y agoYou no longer propagating the same error; if you were type-checking on network exceptions, for example, you would entirely miss it if it was wrapped in LibraryException instead. Wrapping does have value if you are really adding useful information but the example here is just changing the type which really doesn't add anything useful.