ConsoleAction.ShowError Method
Causes the specified exception to display information about the error in the console error display.
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Parameters
- e
- Type: System.Exception
Exception that caused the error message to be displayed.
- myError
- Type: Microsoft.SharePoint.Publishing.WebControls.ConsoleError
ConsoleError that represents the current error message and options.
When a postback to this ConsoleAction object results in an error, you can use this method to provide useful error information to the current user.