A SqlException has a Number property representing the actual exception. A Duplicate Key Exception has for example the Number 2627.
Is there a type of Exception for this Number 2627? Or even wider asked are there any conrete types of exceptions for all the Numbers for an SqlException?
There are none. The Number
is what can be used to differentiate fault reasons.