AlexIT@programming.dev to Programming@programming.devEnglish · 6 days agoWhy I Prefer Exceptions to Error Valuescedardb.comexternal-linkmessage-square45fedilinkarrow-up171arrow-down111
arrow-up160arrow-down1external-linkWhy I Prefer Exceptions to Error Valuescedardb.comAlexIT@programming.dev to Programming@programming.devEnglish · 6 days agomessage-square45fedilink
minus-squareqaz@lemmy.worldlinkfedilinkEnglisharrow-up2·edit-24 days ago I find it quite difficult to properly define the differences between the two. The handling is enforced by one while the other may be unknown to the person who calls the function. I think that’s a pretty clear difference.
minus-squareEphera@lemmy.mllinkfedilinkarrow-up2·5 days agoBut that’s what I mentioned regarding Java there. Java calls them “exceptions”, but generally forces the caller to either handle them or explicitly bubble them upwards…
The handling is enforced by one while the other may be unknown to the person who calls the function. I think that’s a pretty clear difference.
But that’s what I mentioned regarding Java there. Java calls them “exceptions”, but generally forces the caller to either handle them or explicitly bubble them upwards…