DataFormWebPart.WebPartException property

Gets information about an exception associated with the current Data Form Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public Exception WebPartException { get; }

Property value

Type: System.Exception
An exception object describing the exception that occurred during the transform.

After the transform fails, the information that this exception contains may be used to display the appropriate error messages or other user interface elements or to perform other appropriate actions. When the transform fails, an exception normally occurs.