Nothing.
From a technical point of view, completely eliminate this exception. Nothing will break if you do it.
But keep in mind that you should throw a System.IndexOutOfRangeException only if you encounter a System.IndexOutOfRangeException first place, because otherwise this exception would not be appropriate, since it is very clear which type of this exception should be used for . MSDN status for System.IndexOutOfRangeException :
The exception that occurs when trying to access an array element with an index that is outside the array. This class cannot be inherited.
Spontifixus
source share