Beg your pardon,
I did not start this, I asked the OP if he was really talking about the
SQLException then some persons thought they knew everything better and
should attack me on that.
You made an inaccurate claim, which I corrected. In what way was that
"attacking" you? Note that I wasn't the one to claim that you were a
"jerk" of a developer. I wasn't the one to suggest buying a book on
ADO.NET to distinguish between client and server.
*You* were the one to make unnecessary personal attacks.
It would be very bad as the OP got the idea that the SQLException was
catching concurrency errors and more of those thinks like that.
Concurrency errors which are caught on the *srver* will indeed be
propagated by a SQL exception. Concurrency management performed on the
client is a different matter. Likewise if the server detects a
deadlock and aborts one transaction, that will invole a SQL exception.
Likewise any errors deliberately raised within stored procedures due
to business logic violations etc. (Note that in many situations the
person writing the stored proc isn't the same as the person writing
the code to call it.)
What *I* think would be very bad would be for the OP to believe that
SQL exceptions only catch "the errors you have made in your scripts".
Which was told by Jon who got not any reaction from the two others which
showed in fact the knowledge about it from all the three.
Your basic claim was that you shouldn't see any SQL exceptions except
at design time. Why can't you just admit you were wrong to say that?
There's no shame in being wrong; I'll readily admit when I've made a
mistake. You made a mistake here. Admit it and move on.
Jon