Describe your proposed feature?
Many places are still using inline throw statements, while other places use ExceptionHelpers.
Inline throw statements can also cause unnecessary string allocations (locals init). Using ExceptionHelpers is a simple optimization in most cases where exceptions don't happen.
Describe your feature in detail
- Replace each inline throw statement with a call to a static method of
ExceptionHelpers.