2 ms·Sure, there are different ways of doing this. But the OP didn't say 'checked exceptions'.by grey-area 7y agoSure, there are different ways of doing this. But the OP didn't say 'checked exceptions'.