qaz to Programmer [email protected]English • 1 year 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 • 1 year agomessage-square8
minus-square@[email protected]linkfedilinkEnglish2•1 year 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•1 year 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.