Err.Number is just an important switch statement to get a numerical advantage on certain types of exceptions. For position, it returns 13 for InvalidCastException, NotSupportedException, hence FormatException.