Frankly I think it is stupid as compared to VB and other MS technologies. But I am still curious.

Can anyone tell me the logic behind creating separate classes for each type of error, instead of creating a general class Error with error numbers for different types of errors?

.