I wouldn't use exception handling at all in that case. While it is quicker to write the code to use exception handling, the situation is not exceptional. Some systems take noticeable time to throw even a single exception. Therefore, using exception handling in place of testing for invalid conditions with an If statement, will have a noticeable negative impact on performance.