Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
  • The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

ErrorHandling.SetPageError(Exception) Method

Handles the specified exception.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v20.2.dll

NuGet Package: DevExpress.ExpressApp.Web

Declaration

public void SetPageError(
    Exception error
)

Parameters

Name Type Description
error Exception

A System.Exception object that is the error that occurred.

Remarks

This method performs the following:

  • creates the ErrorInfo object corresponding to the specified exception;
  • registers the ErrorInfo object for the current context (the registered object is used by the ErrorInfoControl);
  • sends an alert to the application administrator, if possible (see ErrorHandling.CanSendAlertToAdmin);
  • logs the exception information to the application log file (excluding tracing information).

An example of using this method is provided in the Error Handling in ASP.NET Applications topic.

See Also