Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Catch a specific exception

$
0
0

Hi All,

I am using VS 2013 to create my windows application. In my application in a class I am firing sql query which is been enclosed in the try catch block. I have written a specific catch  for SQLException. Now I have a separate treatment for collation conflict error. So I have a separate function that should be executed only if the exception is due to collation conflict.
How I can separate out the collation conflict exception in sql exception. Is there anything? May be something like errorNo or something else.

Regards,
Girish


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>