Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

DataFormWebPart.HandleGeneralException method

Handles general exceptions.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
protected virtual bool HandleGeneralException(
	Exception e,
	out string msg


Type: System.Exception

The exception to be handled.

Type: System.String

When this method returns true, contains a string that represents the message for the exception; when this method returns false, contains an empty string. This parameter is passed uninitialized.

Return value

Type: System.Boolean
true if the exception was handled; otherwise, false.

This virtual method recursively checks e and its inner exception until finding an Exception whose type is expected, and then sets the msg according to the type of the Exception.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.