Normally, I\'d do this:
try { code code that might throw an anticipated exception you want to handle code code that might throw an anticip
2nd way but ideally use code guards - try/catch can be costly, if you catch an exception.