IdeaBlade DevForce 2010 Help Reference
EntityServerError Event
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : EntityServerError Event



Raised when an error occurs while accessing the EntityServer or backend data source.

Syntax

Visual Basic (Declaration) 
Public Event EntityServerError As EventHandler(Of EntityServerErrorEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As EntityManager
Dim handler As EventHandler(Of EntityServerErrorEventArgs)
 
AddHandler instance.EntityServerError, handler
C# 
public event EventHandler<EntityServerErrorEventArgs> EntityServerError
C++/CLI 
public:
event EventHandler<EntityServerErrorEventArgs^>^ EntityServerError

Event Data

The event handler receives an argument of type EntityServerErrorEventArgs containing data related to this event. The following EntityServerErrorEventArgs properties provide information specific to this event.

PropertyDescription
Exception The exception for the error condition.
Handled Set to true if the exception has been handled, otherwise the exception will be thrown back to the caller.

Remarks

The IdeaBlade.EntityModel.EntityServerException contained within the EntityServerErrorEventArgs will indicate the OperationType which was requested when the error occurred, and the FailureType of the error. Set Handled to true to indicate that the exception should not be re-thrown.

The EntityServerError event is raised for any type of exception condition which occurs while accessing the EntityServer, including during Connect and Login processing, fetching data, or saving data via SaveChanges.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.