qaz to Programmer [email protected]English • 2 years agoWhy use if/else when you can use try/if/catch?imagemessage-square8arrow-up195arrow-down110
arrow-up185arrow-down1imageWhy use if/else when you can use try/if/catch?qaz to Programmer [email protected]English • 2 years agomessage-square8
minus-square@[email protected]linkfedilinkEnglish2•2 years agoI don’t see a catch in the screenshot. Maybe this block just has a finally that cleans some things up before the exception is thrown?
minus-squareqazOPlinkEnglish1•2 years agoIt doesn’t have a catch block, and it isn’t supposed to throw any other exceptions inside the try block either.
I don’t see a
catch
in the screenshot. Maybe this block just has afinally
that cleans some things up before the exception is thrown?It doesn’t have a catch block, and it isn’t supposed to throw any other exceptions inside the try block either.