Managing business rules exception


How do you manage business rules exception?

I am curious to see how other developers or architects deal with some case scenario, where like the project I am working on, everything works fine except that now you have a rule specific for one feature.

I try to explain by an example.

I have a class to populate three dropdownlist from a database, following some established rules.

The dropdown are linked together working in cascade.

Everything's ok but for one case, I have to change the way that the first dropdown bind to the database.

So actually, I rely on a flag to switch between the rule and the exception, but I'm really sure that some other aproach should be possible.


No Comments