DataPortal Exceptions - How do you handle them?

DataPortal Exceptions - How do you handle them?

Old forum URL: forums.lhotka.net/forums/t/5147.aspx


lonforce posted on Thursday, July 24, 2008

Hi!

I know that all VB guys have it simple with the catch... when type.. and so on, but is there any good way of doing that with C# withouth having to rethrow exceptions in the BO? I read a post from 2006 where somebody suggested to catch the exception in the dataportal and when it's a unique contraint or primary key error to add a broken rule to the BO. Now I really don't like messing with Rockies code, but may be someone has some suggestions how to implement such broken rule exception handling?

Copyright (c) Marimer LLC