IDataError vs. ORM Exceptions

Posts   
 
    
jmeckley
User
Posts: 403
Joined: 05-Jul-2006
# Posted on: 19-Jul-2006 16:08:17   

I am having trouble understanding how IDataError (IDE) and ORM Exceptions work together.

Durning validation I can set either the IDE and/or throw a new ORM exception. But setting on will not effect the order. Correct? Meaning an exception will not set IDE and defining the IDE does not throw an exception.

If you throw an exception why would you need the IDE?

IDE does not throw an exception, or fail the CRUD action. It only sets a text message configured by me. Correct?

What good is the IDE if it will not stop the CRUD execution? It doesn't seem like a good idea to execute CRUD exactly the way the user defined it. Example:

  • User sets object properties.
  • Some values do not pass validation.
  • IDE set to "{property} fails validation."
  • Insert/update executed. message to user says "object saved with errors... {IDE message here}"Am I way off base or does this sum it up? Thank you in advance for sheding any light on the subject.
Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 19-Jul-2006 17:18:55   

Have you checked the following thread? http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=6259

jmeckley
User
Posts: 403
Joined: 05-Jul-2006
# Posted on: 19-Jul-2006 20:38:47   

Thanks for the link. It gives somewhat of an idea what the difference is.

  • I know Otis doesn't care for it too much.
  • The interface is limited in functionality.
  • Not applicable to asp.net.I'll stick with Exceptions.