You should never use try/catch for flow control.
Generating an exception is an extremely expensive action. If/else is much faster and cleaner.
You should never use try/catch for flow control.
Generating an exception is an extremely expensive action. If/else is much faster and cleaner.