简体   繁体   中英

Does every Number from an SqlException has its own exception type

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM