errorprovider handling

Posts   
 
    
jspanocsi
User
Posts: 145
Joined: 04-Mar-2005
# Posted on: 04-Mar-2005 22:05:15   

Are there any plans on implementing the IDataErrorInfo interface for llblgen? It would be nice to get the standard .net error provider to show without having to implement this myself. If not, is there a good way to enable this behavior when you bind to the entity objects?

thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 06-Mar-2005 11:34:15   

The framework has two types of errors: 1) everything went ok but the results could be something you didn't ask for (i.e.: you load an entity and it wasn't there). These are semantical errors, and you can determine them by checking return values. 2) some error occured during execution of code, which caused an exception and it couldn't be handled locally. An exception is thrown upwards and you'll receive it.

It's up to you how you'd deal with these as the framework can't decide that for you.

Frans Bouma | Lead developer LLBLGen Pro