Async Interface

Only members of this group can post notes and use other group resources. Join now to get access to all group resources!
Log in or register to join this group

Async RIA Services Exceptions  Viewed 59054 time(s), 2 post(s)., 8/22/2013 12:58:44 PM - by Daniel-Svensson

Daniel-Svensson 1/5/2014 4:35:12 PM

To properly handle failed submit operations it is sometimes required to have access to the ChangeSet in order to see all errors and conflicts and it should therefore also be available through exceptions. Instead of trying to add everything to DomainOperationException and have a large class where several properties are only valid in certain circumstances I propose that a separate exception type with the additional properties available for failed submits is added .

Changes to DomainOperationException:
</br>* Add ValidationErrors property (valid for all types of operations, including Submits)
</br>* Make it unsealed

Add new exception SubmitOperationException (deriving from DomainOperationException)
</br>* Add ChangeSet property
</br>* Add EntitiesInError property

These changes are implemented in the async branch on my fork (

This content has not been rated yet. 
338 Reputation 44 Total posts
Daniel-Svensson 8/22/2013 12:58:45 PM

Since SubmitResult and LoadResult work much like SubmitOperation and LoadOperation but they don't expose any way of accessing error information (this is by design since a *Result always represents a successfully completed event) we need another way to access this information. I propose that the corresponding information is instead added to DomainOperationException.

The relevant properties are
* ValidationErrors (exist for LoadOperation, InvokeOperation today)
* EntitiesInError (exist for SubmitOperation)

This content has not been rated yet. 
338 Reputation 44 Total posts