Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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
)

Parameters

e
Type: System.Exception

The exception to be handled.

msg
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.

Show:
© 2015 Microsoft