IdeaBlade DevForce 2010 Help Reference
Exception Property
See Also  Send Feedback
IdeaBlade.EntityModel.Server Assembly > IdeaBlade.EntityModel.Server Namespace > ErrorInterceptorArgs Class : Exception Property



Gets or sets the exception which will be processed and returned to the client.

Syntax

Visual Basic (Declaration) 
Public Property Exception As Exception
Visual Basic (Usage)Copy Code
Dim instance As ErrorInterceptorArgs
Dim value As Exception
 
instance.Exception = value
 
value = instance.Exception
C# 
public Exception Exception {get; set;}
C++/CLI 
public:
property Exception^ Exception {
   Exception^ get();
   void set (    Exception^ value);
}

Remarks

The exception set here will be returned to the client. You may replace the exception originally thrown with another exception, for example to hide exception details.

Use the Exception.StackTrace and Exception.InnerException as well as the exception type to help identify the exception and where it came from. Most exceptions will be some type of IdeaBlade.EntityModel.EntityServerException and will include the IdeaBlade.EntityModel.EntityServerException.FailureType and IdeaBlade.EntityModel.EntityServerException.OperationType to help identify the error.

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.