Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling, fatal results on constraint in table
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01395947
Message ID:
01395953
Views:
50
>I am finishing up the web forms jump start app in C# in MM.NET 3.5 help file chm doc.

Additional remarks. I set a breakpoint in the mmBusinessObject.cs and watched code trace through a couple of rollback trans methods.

As it finishes, it goes through these lines at end of the method:
if (TransactionStarted)
{
this.TransactionRollback();
throw;

and when it hits the "throw" command, the error is thrown SQL Exception was unhandled by user code", with info that it was the CK_Discount constraint that stopped the insert.

Thanks,
Ron.

Ronald D. Edge
Director of Information Services
Indiana University Athletics
http://iuhoosiers.com

"You've got to be very careful if you don't know where you are going,
because you might not get there."
“When you come to the fork in the road, take it”
--Yogi Berra
Ronald D. Edge
Retired from Indiana University Mar 1, 2011

"You've got to be very careful if you don't know where you are going,
because you might not get there."
“When you come to the fork in the road, take it.”
--Yogi Berra
Previous
Reply
Map
View

Click here to load this message in the networking platform